Skip to content

Commit

Permalink
release
Browse files Browse the repository at this point in the history
  • Loading branch information
adrai committed Dec 30, 2023
1 parent 0ad5cb5 commit 9f26ddb
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 23.7.13

- types: optimise ParseTReturn [2095](https://github.com/i18next/i18next/pull/2095)

## 23.7.12

- types: fix for older ts version (context validation only for TS 5)
Expand Down
4 changes: 3 additions & 1 deletion examples/typescript/i18n/en/ns1.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,7 @@
"inter": "interpolated {{val}}",
"some": "ctx",
"some_me": "ctx2",
"some_1234": "ctx3"
"some_1234": "ctx3",
"pl_one": "sing",
"pl_other": "{{count}} plur"
}
2 changes: 2 additions & 0 deletions examples/typescript/i18n/en/ns1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ const ns1 = {
some: 'ctx',
some_me: 'ctx2',
some_1234: 'ctx3',
pl_one: 'sing',
pl_other: '{{count}} plur',
} as const;

export default ns1;
3 changes: 3 additions & 0 deletions examples/typescript/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ console.log(i18next.t('some'));
console.log(i18next.t('some', { context: 'me' }));
console.log(i18next.t('some', { context: '1234' }));

console.log(i18next.t('pl', { count: 1 }));
console.log(i18next.t('pl', { count: 2 }));

const l = i18next.language;

// interpolation
Expand Down
2 changes: 1 addition & 1 deletion examples/typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
"typescript": "4.9.3"
},
"dependencies": {
"i18next": "23.7.11"
"i18next": "23.7.13"
}
}

0 comments on commit 9f26ddb

Please sign in to comment.