-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Update output file format for i18n_check tool * Update i18n engine to work with new format * Update tests * Fix UI bootstrap test * Update loader tests and fix getTranslationsByLocale function * Fix messages passing to IntlProvider * Update messages interface * Resolve comments * Resolve comment
- Loading branch information
1 parent
31d30f8
commit b3086f2
Showing
19 changed files
with
294 additions
and
289 deletions.
There are no files selected for viewing
6 changes: 4 additions & 2 deletions
6
packages/kbn-i18n/src/__fixtures__/test_plugin_1/translations/en-US.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
{ | ||
"a.b.c": "bar", | ||
"d.e.f": "foo" | ||
"messages": { | ||
"a.b.c": "bar", | ||
"d.e.f": "foo" | ||
} | ||
} |
6 changes: 4 additions & 2 deletions
6
packages/kbn-i18n/src/__fixtures__/test_plugin_1/translations/en.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
{ | ||
"a.b.c": "foo", | ||
"d.e.f": "bar" | ||
"messages": { | ||
"a.b.c": "foo", | ||
"d.e.f": "bar" | ||
} | ||
} |
6 changes: 4 additions & 2 deletions
6
packages/kbn-i18n/src/__fixtures__/test_plugin_2/translations/en.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
{ | ||
"a.b.c.custom": "foo.custom", | ||
"d.e.f.custom": "bar.custom" | ||
"messages": { | ||
"a.b.c.custom": "foo.custom", | ||
"d.e.f.custom": "bar.custom" | ||
} | ||
} |
4 changes: 3 additions & 1 deletion
4
packages/kbn-i18n/src/__fixtures__/test_plugin_2/translations/fr.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
{ | ||
test: 'test' // JSON5 test | ||
messages: { | ||
test: 'test' // JSON5 test | ||
} | ||
} |
4 changes: 3 additions & 1 deletion
4
packages/kbn-i18n/src/__fixtures__/test_plugin_2/translations/ru.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
{ | ||
"test": "test" | ||
"messages": { | ||
"test": "test" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.