Skip to content

Commit

Permalink
copy null key test
Browse files Browse the repository at this point in the history
  • Loading branch information
adrai committed Jun 9, 2023
1 parent 061de6b commit 8091302
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion test/typescript/custom-types/t.test.ts
Expand Up @@ -125,6 +125,6 @@ function returnNeverWithInvalidNamespace(t: TFunction<string>) {
}

function nullTranslations() {
// seems not to work right now
// seems to work only when not using typesafe translations
// i18next.t('nullKey').trim();
}
4 changes: 4 additions & 0 deletions test/typescript/t.test.ts
Expand Up @@ -163,3 +163,7 @@ function interpolation(t: TFunction) {
t('welcome ...', { keySeparator: false });
// -> "welcome ..."
}

function nullTranslations() {
i18next.t('nullKey').trim();
}

0 comments on commit 8091302

Please sign in to comment.