Skip to content

Commit

Permalink
update i18next dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
adrai committed Sep 20, 2021
1 parent dcf9c60 commit 3ce79c8
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 18 deletions.
2 changes: 1 addition & 1 deletion example/locize/package.json
Expand Up @@ -3,7 +3,7 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"i18next": "20.3.1",
"i18next": "21.0.0",
"i18next-browser-languagedetector": "6.1.1",
"i18next-locize-backend": "4.2.2",
"locize": "2.2.4",
Expand Down
2 changes: 1 addition & 1 deletion example/react/package.json
Expand Up @@ -3,7 +3,7 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"i18next": "20.3.1",
"i18next": "21.0.0",
"i18next-browser-languagedetector": "6.1.1",
"i18next-http-backend": "1.2.6",
"react": "17.0.2",
Expand Down
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -67,7 +67,7 @@
"eslint-plugin-react": "^7.16.0",
"eslint-plugin-testing-library": "^3.10.1",
"husky": "^3.0.3",
"i18next": "^20.6.1",
"i18next": "^21.0.0",
"jest": "^24.8.0",
"jest-cli": "^24.8.4",
"lint-staged": "^8.1.3",
Expand Down
15 changes: 8 additions & 7 deletions test/i18n.js
Expand Up @@ -23,24 +23,25 @@ i18n.init({
'<strong>Go</strong><video /><script>console.warn("test")</script> there.',
transTest2:
'Hello <1><0>{{name}}</0></1>, you have <3>{{count}}</3> message. Open <5>hear</5>.',
transTest2_plural:
transTest2_other:
'Hello <1><0>{{name}}</0></1>, you have <3>{{count}}</3> messages. Open <5>here</5>.',
transTest2InV2: 'Hello <1>{{name}}</1>, you have {{count}} message. Open <5>hear</5>.',
transTest2InV2_plural:
transTest2InV2_other:
'Hello <1>{{name}}</1>, you have {{count}} messages. Open <5>here</5>.',
testTransKey1: '<0>{{numOfItems}}</0> item matched.',
testTransKey1_plural: '<0>{{numOfItems}}</0> items matched.',
testTransKey1_other: '<0>{{numOfItems}}</0> items matched.',
testTransKey2: '<0><0>{{numOfItems}}</0></0> item matched.',
testTransKey2_plural: '<0><0>{{numOfItems}}</0></0> items matched.',
testTransKey2_other: '<0><0>{{numOfItems}}</0></0> items matched.',
testTransKey3: 'Result: <1><0>{{numOfItems}}</0></1> item matched.',
testTransKey3_plural: 'Result: <1><0>{{numOfItems}}</0></1> items matched.',
testTransKey3_other: 'Result: <1><0>{{numOfItems}}</0></1> items matched.',
testInvalidHtml: '<hello',
testInvalidHtml2: '<hello>',
testTrans4KeyWithNestedComponent: 'Result should be a list: <0></0>',
testTrans5KeyWithNestedComponent: 'Result should be a list: <1></1>',
testTrans5KeyWithValue: 'Result should be rendered within tag <0>{{testValue}}</0>',
transTest3: 'Result should be a clickable link <0 href="https://www.google.com">Google</0>',
transTest3_overwrite: 'Result should be a clickable link <0 href="https://www.google.com">Google</0>',
transTest3: 'Result should be a clickable link <0 href="https://www.google.com">Google</0>',
transTest3_overwrite:
'Result should be a clickable link <0 href="https://www.google.com">Google</0>',
},
other: {
transTest1: 'Another go <1>there</1>.',
Expand Down
10 changes: 5 additions & 5 deletions test/typescript/i18n.ts
Expand Up @@ -23,17 +23,17 @@ i18n.init({
'<strong>Go</strong><video /><script>console.warn("test")</script> there.',
transTest2:
'Hello <1><0>{{name}}</0></1>, you have <3>{{count}}</3> message. Open <5>hear</5>.',
transTest2_plural:
transTest2_other:
'Hello <1><0>{{name}}</0></1>, you have <3>{{count}}</3> messages. Open <5>here</5>.',
transTest2InV2: 'Hello <1>{{name}}</1>, you have {{count}} message. Open <5>hear</5>.',
transTest2InV2_plural:
transTest2InV2_other:
'Hello <1>{{name}}</1>, you have {{count}} messages. Open <5>here</5>.',
testTransKey1: '<0>{{numOfItems}}</0> item matched.',
testTransKey1_plural: '<0>{{numOfItems}}</0> items matched.',
testTransKey1_other: '<0>{{numOfItems}}</0> items matched.',
testTransKey2: '<0><0>{{numOfItems}}</0></0> item matched.',
testTransKey2_plural: '<0><0>{{numOfItems}}</0></0> items matched.',
testTransKey2_other: '<0><0>{{numOfItems}}</0></0> items matched.',
testTransKey3: 'Result: <1><0>{{numOfItems}}</0></1> item matched.',
testTransKey3_plural: 'Result: <1><0>{{numOfItems}}</0></1> items matched.',
testTransKey3_other: 'Result: <1><0>{{numOfItems}}</0></1> items matched.',
testInvalidHtml: '<hello',
testInvalidHtml2: '<hello>',
testTrans4KeyWithNestedComponent: 'Result should be a list: <0></0>',
Expand Down

0 comments on commit 3ce79c8

Please sign in to comment.