ICU types
This commit is contained in:
parent
38adef4233
commit
78f4e96297
42 changed files with 583 additions and 1182 deletions
|
@ -14,12 +14,6 @@ describe('setupI18n', () => {
|
|||
});
|
||||
|
||||
describe('i18n', () => {
|
||||
it('throws an error for unknown string', () => {
|
||||
assert.throws(() => {
|
||||
// eslint-disable-next-line local-rules/valid-i18n-keys
|
||||
assert.strictEqual(i18n('icu:random'), '');
|
||||
}, /missing translation/);
|
||||
});
|
||||
it('returns message for given string', () => {
|
||||
assert.strictEqual(i18n('icu:reportIssue'), 'Contact Support');
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue