Skip to content

Commit

Permalink
Try with simple en locale
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelva committed Dec 27, 2024
1 parent f922862 commit 9faf569
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public class TestSlackFunctions {
@Test
public void testGetTranslation() throws OperationException {
SlackFunctions fn = new SlackFunctions();
String translation = fn.getTranslation("test.key","en_US");
String translation = fn.getTranslation("test.key","en");
assertEquals("Allo",translation);
}

Expand Down
1 change: 1 addition & 0 deletions nuxeo-slack-core/src/test/resources/messages_en.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
test.key=Allo

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<category>javascript</category>
<description></description>
<script><![CDATA[function run(input, params) {
return SlackUtils.getTranslation("test.key","en_US");
return SlackUtils.getTranslation("test.key","en");
}]]>
</script>
</scriptedOperation>
Expand Down

0 comments on commit 9faf569

Please sign in to comment.