Skip to content

Commit

Permalink
Repro issue from i18next#1882
Browse files Browse the repository at this point in the history
  • Loading branch information
bhollis committed Dec 13, 2022
1 parent c0bc1a6 commit 4b3aca0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/typescript/custom-types/i18next.d.ts
Expand Up @@ -8,6 +8,9 @@ declare module 'i18next' {
custom: {
foo: 'foo';
bar: 'bar';
baz: {
bing: 'boop';
};
};
alternate: {
baz: 'baz';
Expand Down
2 changes: 2 additions & 0 deletions test/typescript/custom-types/t.test.ts
Expand Up @@ -50,6 +50,8 @@ function i18nextTUsage() {
i18next.t('bar', { ns: 'alternate' });
// i18next.t('bar', {}).trim();
i18next.t('bar').trim();
i18next.t('baz.bing').trim();
i18next.t('alternate:foobar.barfoo').trim();

i18next.t('custom:bar', { defaultValue: 'some default value' });
i18next.t('custom:bar', 'some default value');
Expand Down

0 comments on commit 4b3aca0

Please sign in to comment.