diff options
| author | Mohamed Bassem <me@mbassem.com> | 2024-11-17 00:33:28 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-17 00:33:28 +0000 |
| commit | 4354ee7ba1c6ac9a9567944ae6169b1664e0ea8a (patch) | |
| tree | e27c9070930514d77582bae00b3350274116179c /pnpm-lock.yaml | |
| parent | 9f2c7be23769bb0f4102736a683710b1a1939661 (diff) | |
| download | karakeep-4354ee7ba1c6ac9a9567944ae6169b1664e0ea8a.tar.zst | |
feature: Add i18n support. Fixes #57 (#635)
* feature(web): Add basic scaffolding for i18n
* refactor: Switch most of the app's strings to use i18n strings
* fix: Remove unused i18next-resources-for-ts command
* Add user setting
* More translations
* Drop the german translation for now
Diffstat (limited to 'pnpm-lock.yaml')
| -rw-r--r-- | pnpm-lock.yaml | 164 |
1 files changed, 133 insertions, 31 deletions
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 8d2b95d1..bab0736d 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -568,6 +568,12 @@ importers: fastest-levenshtein: specifier: ^1.0.16 version: 1.0.16 + i18next: + specifier: ^23.16.5 + version: 23.16.5 + i18next-resources-to-backend: + specifier: ^1.2.1 + version: 1.2.1 lucide-react: specifier: ^0.330.0 version: 0.330.0(react@18.2.0) @@ -577,6 +583,9 @@ importers: next-auth: specifier: ^4.24.5 version: 4.24.6(next@14.2.13(@babel/core@7.24.0)(react-dom@18.2.0(react@18.2.0))(react@18.2.0))(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + next-i18next: + specifier: ^15.3.1 + version: 15.3.1(i18next@23.16.5)(next@14.2.13(@babel/core@7.24.0)(react-dom@18.2.0(react@18.2.0))(react@18.2.0))(react-i18next@15.1.1(i18next@23.16.5)(react-dom@18.2.0(react@18.2.0))(react@18.2.0))(react@18.2.0) next-pwa: specifier: ^5.6.0 version: 5.6.0(@babel/core@7.24.0)(next@14.2.13(@babel/core@7.24.0)(react-dom@18.2.0(react@18.2.0))(react@18.2.0))(webpack@5.90.3) @@ -601,6 +610,9 @@ importers: react-hook-form: specifier: ^7.50.1 version: 7.50.1(react@18.2.0) + react-i18next: + specifier: ^15.1.1 + version: 15.1.1(i18next@23.16.5)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) react-intersection-observer: specifier: ^9.13.1 version: 9.13.1(react-dom@18.2.0(react@18.2.0))(react@18.2.0) @@ -2027,6 +2039,10 @@ packages: resolution: {integrity: sha512-0CX6F+BI2s9dkUqr08KFrAIZgNFj75rdBU/DjCyYLIaV/quFjkk6T+EJ2LkZHyZTbEV4L5p97mNkUsHl2wLFAw==} engines: {node: '>=6.9.0'} + '@babel/runtime@7.26.0': + resolution: {integrity: sha512-FDSOghenHTiToteC/QRlv2q3DhPZ/oOXTBoirfWNx1Cx3TMVcGWQtMMmQcSvb/JjpNeGzx8Pq/b4fKEJuWm1sw==} + engines: {node: '>=6.9.0'} + '@babel/template@7.23.9': resolution: {integrity: sha512-+xrD2BWLpvHKNmX2QbpdpsBaWnRxahMwJjO+KZk2JOElj5nSmKezyS1B4u+QbHMTX69t4ukm6hh9lsYQ7GHCKA==} engines: {node: '>=6.9.0'} @@ -7585,6 +7601,9 @@ packages: engines: {node: ^14.13.1 || >=16.0.0} hasBin: true + html-parse-stringify@3.0.1: + resolution: {integrity: sha512-KknJ50kTInJ7qIScF3jeaFRpMpE8/lfiTdzf/twXyPBLAGrLRTmkz3AdTnKeh40X8k9L2fdYwEp/42WGXIRGcg==} + html-tags@3.3.1: resolution: {integrity: sha512-ztqyC3kLto0e9WbNp0aeP+M3kTt+nbaIveGmUxAtZa+8iFgKLUOD4YKM5j+f3QD89bra7UeumolZHKuOXnTmeQ==} engines: {node: '>=8'} @@ -7702,6 +7721,15 @@ packages: hyphenate-style-name@1.0.4: resolution: {integrity: sha512-ygGZLjmXfPHj+ZWh6LwbC37l43MhfztxetbFCoYTM2VjkIUpeHgSNn7QIyVFj7YQ1Wl9Cbw5sholVJPzWvC2MQ==} + i18next-fs-backend@2.3.2: + resolution: {integrity: sha512-LIwUlkqDZnUI8lnUxBnEj8K/FrHQTT/Sc+1rvDm9E8YvvY5YxzoEAASNx+W5M9DfD5s77lI5vSAFWeTp26B/3Q==} + + i18next-resources-to-backend@1.2.1: + resolution: {integrity: sha512-okHbVA+HZ7n1/76MsfhPqDou0fptl2dAlhRDu2ideXloRRduzHsqDOznJBef+R3DFZnbvWoBW+KxJ7fnFjd6Yw==} + + i18next@23.16.5: + resolution: {integrity: sha512-KTlhE3EP9x6pPTAW7dy0WKIhoCpfOGhRQlO+jttQLgzVaoOjWwBWramu7Pp0i+8wDNduuzXfe3kkVbzrKyrbTA==} + iconv-lite@0.4.24: resolution: {integrity: sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==} engines: {node: '>=0.10.0'} @@ -9377,6 +9405,15 @@ packages: nodemailer: optional: true + next-i18next@15.3.1: + resolution: {integrity: sha512-+pa2pZJb7B6k5PKW3TLVMmAodqkNaOBWVYlpWX56mgcEJz0UMW+MKSdKM9Z72CHp6Bp48g7OWwDnLqxXNp/84w==} + engines: {node: '>=14'} + peerDependencies: + i18next: '>= 23.7.13' + next: '>= 12.0.0' + react: '>= 17.0.2' + react-i18next: '>= 13.5.0' + next-pwa@5.6.0: resolution: {integrity: sha512-XV8g8C6B7UmViXU8askMEYhWwQ4qc/XqJGnexbLV68hzKaGHZDMtHsm2TNxFcbR7+ypVuth/wwpiIlMwpRJJ5A==} peerDependencies: @@ -10726,6 +10763,19 @@ packages: peerDependencies: react: ^16.8.0 || ^17 || ^18 + react-i18next@15.1.1: + resolution: {integrity: sha512-R/Vg9wIli2P3FfeI8o1eNJUJue5LWpFsQePCHdQDmX0Co3zkr6kdT8gAseb/yGeWbNz1Txc4bKDQuZYsC0kQfw==} + peerDependencies: + i18next: '>= 23.2.3' + react: '>= 16.8.0' + react-dom: '*' + react-native: '*' + peerDependenciesMeta: + react-dom: + optional: true + react-native: + optional: true + react-intersection-observer@9.13.1: resolution: {integrity: sha512-tSzDaTy0qwNPLJHg8XZhlyHTgGW6drFKTtvjdL+p6um12rcnp8Z5XstE+QNBJ7c64n5o0Lj4ilUleA41bmDoMw==} peerDependencies: @@ -12580,6 +12630,10 @@ packages: vlq@1.0.1: resolution: {integrity: sha512-gQpnTgkubC6hQgdIcRdYGDSDc+SaujOdyesZQMv6JlfQee/9Mp0Qhnys6WxDWvQnL5WZdT7o2Ul187aSt0Rq+w==} + void-elements@3.1.0: + resolution: {integrity: sha512-Dhxzh5HZuiHQhbvTW9AMetFfBHDMYpo23Uo9btPXgdYP+3T5S+p+jgNy7spra+veYhBP2dCSgxR/i2Y02h5/6w==} + engines: {node: '>=0.10.0'} + w3c-xmlserializer@5.0.0: resolution: {integrity: sha512-o8qghlI8NZHU1lLPrpi2+Uq7abh4GGPpYANlalzWxyWteJOCsr/P+oPBA49TOLu5FTZO4d3F9MnWJfiMo4BkmA==} engines: {node: '>=18'} @@ -15025,6 +15079,11 @@ snapshots: '@babel/runtime@7.23.9': dependencies: regenerator-runtime: 0.14.1 + dev: false + + '@babel/runtime@7.26.0': + dependencies: + regenerator-runtime: 0.14.1 '@babel/template@7.23.9': dependencies: @@ -15874,7 +15933,7 @@ snapshots: '@emotion/babel-plugin@11.11.0': dependencies: '@babel/helper-module-imports': 7.22.15 - '@babel/runtime': 7.23.9 + '@babel/runtime': 7.26.0 '@emotion/hash': 0.9.1 '@emotion/memoize': 0.8.1 '@emotion/serialize': 1.1.3 @@ -15903,7 +15962,7 @@ snapshots: '@emotion/react@11.11.4(@types/react@18.2.58)(react@18.2.0)': dependencies: - '@babel/runtime': 7.23.9 + '@babel/runtime': 7.26.0 '@emotion/babel-plugin': 11.11.0 '@emotion/cache': 11.11.0 '@emotion/serialize': 1.1.3 @@ -16143,7 +16202,7 @@ snapshots: '@expo/cli@0.17.13(@react-native/babel-preset@0.73.21(@babel/core@7.23.9)(@babel/preset-env@7.24.0(@babel/core@7.23.9)))(expo-modules-autolinking@1.10.3)': dependencies: - '@babel/runtime': 7.23.9 + '@babel/runtime': 7.26.0 '@expo/code-signing-certificates': 0.0.5 '@expo/config': 8.5.6 '@expo/config-plugins': 7.9.2 @@ -17051,7 +17110,7 @@ snapshots: '@radix-ui/react-arrow@1.0.3(@types/react-dom@18.2.19)(@types/react@18.2.58)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': dependencies: - '@babel/runtime': 7.23.9 + '@babel/runtime': 7.26.0 '@radix-ui/react-primitive': 1.0.3(@types/react-dom@18.2.19)(@types/react@18.2.58)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) '@types/react': 18.2.58 '@types/react-dom': 18.2.19 @@ -17078,7 +17137,7 @@ snapshots: '@radix-ui/react-collection@1.0.3(@types/react-dom@18.2.19)(@types/react@18.2.58)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': dependencies: - '@babel/runtime': 7.23.9 + '@babel/runtime': 7.26.0 '@radix-ui/react-compose-refs': 1.0.1(@types/react@18.2.58)(react@18.2.0) '@radix-ui/react-context': 1.0.1(@types/react@18.2.58)(react@18.2.0) '@radix-ui/react-primitive': 1.0.3(@types/react-dom@18.2.19)(@types/react@18.2.58)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) @@ -17091,13 +17150,13 @@ snapshots: '@radix-ui/react-compose-refs@1.0.0(react@18.2.0)': dependencies: - '@babel/runtime': 7.23.9 + '@babel/runtime': 7.26.0 react: 18.2.0 dev: false '@radix-ui/react-compose-refs@1.0.1(@types/react@18.2.58)(react@18.2.0)': dependencies: - '@babel/runtime': 7.23.9 + '@babel/runtime': 7.26.0 '@types/react': 18.2.58 react: 18.2.0 dev: false @@ -17146,7 +17205,7 @@ snapshots: '@radix-ui/react-direction@1.0.1(@types/react@18.2.58)(react@18.2.0)': dependencies: - '@babel/runtime': 7.23.9 + '@babel/runtime': 7.26.0 '@types/react': 18.2.58 react: 18.2.0 dev: false @@ -17271,7 +17330,7 @@ snapshots: '@radix-ui/react-popper@1.1.3(@types/react-dom@18.2.19)(@types/react@18.2.58)(react-dom@18.2.0(react@18.2.0))(react@18.2.0)': dependencies: - '@babel/runtime': 7.23.9 + '@babel/runtime': 7.26.0 '@floating-ui/react-dom': 2.0.8(react-dom@18.2.0(react@18.2.0))(react@18.2.0) '@radix-ui/react-arrow': 1.0.3(@types/react-dom@18.2.19)(@types/react@18.2.58)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) '@radix-ui/react-compose-refs': 1.0.1(@types/react@18.2.58)(react@18.2.0) @@ -17416,7 +17475,7 @@ snapshots: '@radix-ui/react-slot@1.0.1(react@18.2.0)': dependencies: - '@babel/runtime': 7.23.9 + '@babel/runtime': 7.26.0 '@radix-ui/react-compose-refs': 1.0.0(react@18.2.0) react: 18.2.0 dev: false @@ -17509,7 +17568,7 @@ snapshots: '@radix-ui/react-use-callback-ref@1.0.1(@types/react@18.2.58)(react@18.2.0)': dependencies: - '@babel/runtime': 7.23.9 + '@babel/runtime': 7.26.0 '@types/react': 18.2.58 react: 18.2.0 dev: false @@ -17524,7 +17583,7 @@ snapshots: '@radix-ui/react-use-escape-keydown@1.0.3(@types/react@18.2.58)(react@18.2.0)': dependencies: - '@babel/runtime': 7.23.9 + '@babel/runtime': 7.26.0 '@radix-ui/react-use-callback-ref': 1.0.1(@types/react@18.2.58)(react@18.2.0) '@types/react': 18.2.58 react: 18.2.0 @@ -17532,7 +17591,7 @@ snapshots: '@radix-ui/react-use-layout-effect@1.0.1(@types/react@18.2.58)(react@18.2.0)': dependencies: - '@babel/runtime': 7.23.9 + '@babel/runtime': 7.26.0 '@types/react': 18.2.58 react: 18.2.0 dev: false @@ -17546,7 +17605,7 @@ snapshots: '@radix-ui/react-use-rect@1.0.1(@types/react@18.2.58)(react@18.2.0)': dependencies: - '@babel/runtime': 7.23.9 + '@babel/runtime': 7.26.0 '@radix-ui/rect': 1.0.1 '@types/react': 18.2.58 react: 18.2.0 @@ -17554,7 +17613,7 @@ snapshots: '@radix-ui/react-use-size@1.0.1(@types/react@18.2.58)(react@18.2.0)': dependencies: - '@babel/runtime': 7.23.9 + '@babel/runtime': 7.26.0 '@radix-ui/react-use-layout-effect': 1.0.1(@types/react@18.2.58)(react@18.2.0) '@types/react': 18.2.58 react: 18.2.0 @@ -17572,7 +17631,7 @@ snapshots: '@radix-ui/rect@1.0.1': dependencies: - '@babel/runtime': 7.23.9 + '@babel/runtime': 7.26.0 dev: false '@react-native-community/cli-clean@12.3.2': @@ -19713,7 +19772,7 @@ snapshots: babel-plugin-macros@3.1.0: dependencies: - '@babel/runtime': 7.23.9 + '@babel/runtime': 7.26.0 cosmiconfig: 7.1.0 resolve: 1.22.8 dev: false @@ -21348,7 +21407,7 @@ snapshots: dom-helpers@5.2.1: dependencies: - '@babel/runtime': 7.23.9 + '@babel/runtime': 7.26.0 csstype: 3.1.3 dev: false @@ -23345,7 +23404,7 @@ snapshots: history@4.10.1: dependencies: - '@babel/runtime': 7.23.9 + '@babel/runtime': 7.26.0 loose-envify: 1.4.0 resolve-pathname: 3.0.0 tiny-invariant: 1.3.3 @@ -23404,6 +23463,11 @@ snapshots: terser: 5.28.1 dev: false + html-parse-stringify@3.0.1: + dependencies: + void-elements: 3.1.0 + dev: false + html-tags@3.3.1: dev: false @@ -23573,6 +23637,19 @@ snapshots: hyphenate-style-name@1.0.4: dev: false + i18next-fs-backend@2.3.2: + dev: false + + i18next-resources-to-backend@1.2.1: + dependencies: + '@babel/runtime': 7.26.0 + dev: false + + i18next@23.16.5: + dependencies: + '@babel/runtime': 7.23.9 + dev: false + iconv-lite@0.4.24: dependencies: safer-buffer: 2.1.2 @@ -25270,7 +25347,7 @@ snapshots: metro-runtime@0.80.6: dependencies: - '@babel/runtime': 7.23.9 + '@babel/runtime': 7.26.0 dev: false metro-source-map@0.80.6: @@ -25998,6 +26075,19 @@ snapshots: uuid: 8.3.2 dev: false + next-i18next@15.3.1(i18next@23.16.5)(next@14.2.13(@babel/core@7.24.0)(react-dom@18.2.0(react@18.2.0))(react@18.2.0))(react-i18next@15.1.1(i18next@23.16.5)(react-dom@18.2.0(react@18.2.0))(react@18.2.0))(react@18.2.0): + dependencies: + '@babel/runtime': 7.23.9 + '@types/hoist-non-react-statics': 3.3.5 + core-js: 3.36.0 + hoist-non-react-statics: 3.3.2 + i18next: 23.16.5 + i18next-fs-backend: 2.3.2 + next: 14.2.13(@babel/core@7.24.0)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + react: 18.2.0 + react-i18next: 15.1.1(i18next@23.16.5)(react-dom@18.2.0(react@18.2.0))(react@18.2.0) + dev: false + next-pwa@5.6.0(@babel/core@7.24.0)(next@14.2.13(@babel/core@7.24.0)(react-dom@18.2.0(react@18.2.0))(react@18.2.0))(webpack@5.90.3): dependencies: babel-loader: 8.3.0(@babel/core@7.24.0)(webpack@5.90.3) @@ -27607,7 +27697,7 @@ snapshots: react-helmet-async@1.3.0(react-dom@18.2.0(react@18.2.0))(react@18.2.0): dependencies: - '@babel/runtime': 7.23.9 + '@babel/runtime': 7.26.0 invariant: 2.2.4 prop-types: 15.8.1 react: 18.2.0 @@ -27620,6 +27710,15 @@ snapshots: react: 18.2.0 dev: false + react-i18next@15.1.1(i18next@23.16.5)(react-dom@18.2.0(react@18.2.0))(react@18.2.0): + dependencies: + '@babel/runtime': 7.26.0 + html-parse-stringify: 3.0.1 + i18next: 23.16.5 + react: 18.2.0 + react-dom: 18.2.0(react@18.2.0) + dev: false + react-intersection-observer@9.13.1(react-dom@18.2.0(react@18.2.0))(react@18.2.0): dependencies: react: 18.2.0 @@ -27640,7 +27739,7 @@ snapshots: react-loadable-ssr-addon-v5-slorber@1.0.1(@docusaurus/react-loadable@6.0.0(react@18.2.0))(webpack@5.90.3): dependencies: - '@babel/runtime': 7.23.9 + '@babel/runtime': 7.26.0 react-loadable: '@docusaurus/react-loadable@6.0.0(react@18.2.0)' webpack: 5.90.3 dev: false @@ -27932,7 +28031,7 @@ snapshots: react-redux@7.2.9(react-dom@18.2.0(react@18.2.0))(react@18.2.0): dependencies: - '@babel/runtime': 7.23.9 + '@babel/runtime': 7.26.0 '@types/react-redux': 7.1.34 hoist-non-react-statics: 3.3.2 loose-envify: 1.4.0 @@ -27969,14 +28068,14 @@ snapshots: react-router-config@5.1.1(react-router@5.3.4(react@18.2.0))(react@18.2.0): dependencies: - '@babel/runtime': 7.23.9 + '@babel/runtime': 7.26.0 react: 18.2.0 react-router: 5.3.4(react@18.2.0) dev: false react-router-dom@5.3.4(react@18.2.0): dependencies: - '@babel/runtime': 7.23.9 + '@babel/runtime': 7.26.0 history: 4.10.1 loose-envify: 1.4.0 prop-types: 15.8.1 @@ -27996,7 +28095,7 @@ snapshots: react-router@5.3.4(react@18.2.0): dependencies: - '@babel/runtime': 7.23.9 + '@babel/runtime': 7.26.0 history: 4.10.1 hoist-non-react-statics: 3.3.2 loose-envify: 1.4.0 @@ -28059,7 +28158,7 @@ snapshots: react-transition-group@4.4.5(react-dom@18.2.0(react@18.2.0))(react@18.2.0): dependencies: - '@babel/runtime': 7.23.9 + '@babel/runtime': 7.26.0 dom-helpers: 5.2.1 loose-envify: 1.4.0 prop-types: 15.8.1 @@ -28133,7 +28232,7 @@ snapshots: redux@4.2.1: dependencies: - '@babel/runtime': 7.23.9 + '@babel/runtime': 7.26.0 dev: false reflect.getprototypeof@1.0.5: @@ -28179,7 +28278,7 @@ snapshots: regenerator-transform@0.15.2: dependencies: - '@babel/runtime': 7.23.9 + '@babel/runtime': 7.26.0 dev: false regexp.prototype.flags@1.5.2: @@ -30158,6 +30257,9 @@ snapshots: vlq@1.0.1: dev: false + void-elements@3.1.0: + dev: false + w3c-xmlserializer@5.0.0: dependencies: xml-name-validator: 5.0.0 @@ -30509,7 +30611,7 @@ snapshots: '@apideck/better-ajv-errors': 0.3.6(ajv@8.17.1) '@babel/core': 7.24.0 '@babel/preset-env': 7.24.0(@babel/core@7.24.0) - '@babel/runtime': 7.23.9 + '@babel/runtime': 7.26.0 '@rollup/plugin-babel': 5.3.1(@babel/core@7.24.0)(rollup@2.79.1) '@rollup/plugin-node-resolve': 11.2.1(rollup@2.79.1) '@rollup/plugin-replace': 2.4.2(rollup@2.79.1) @@ -30750,7 +30852,7 @@ snapshots: yaml@1.8.3: dependencies: - '@babel/runtime': 7.23.9 + '@babel/runtime': 7.26.0 dev: false yaml@2.6.0: {} |
