From eeebde2a2a7da0213af5346bab0064ad327a95ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benoi=CC=82t=20Rouleau?= Date: Thu, 21 Dec 2023 12:49:04 -0500 Subject: [PATCH] Update locales from GDS + enable Swedish and Turkish languages --- packages/nextra-theme/package.json | 8 +++---- pnpm-lock.yaml | 38 +++++++++++++++--------------- website/i18n.ts | 16 +++++++++++-- website/package.json | 4 ++-- website/pages/cs/translations.ts | 13 ++++++++++ website/pages/ha/translations.ts | 13 ++++++++++ website/pages/ro/translations.ts | 13 ++++++++++ website/pages/yo/translations.ts | 13 ++++++++++ 8 files changed, 91 insertions(+), 27 deletions(-) create mode 100644 website/pages/cs/translations.ts create mode 100644 website/pages/ha/translations.ts create mode 100644 website/pages/ro/translations.ts create mode 100644 website/pages/yo/translations.ts diff --git a/packages/nextra-theme/package.json b/packages/nextra-theme/package.json index b9e48cf37a2a..ab364a838e72 100644 --- a/packages/nextra-theme/package.json +++ b/packages/nextra-theme/package.json @@ -25,8 +25,8 @@ "typecheck": "tsc --noEmit" }, "peerDependencies": { - "@edgeandnode/gds": "3.0.0-global-header-1703167287784-4d7f05b34403f749b2baf2c11af2882b2acb4b11", - "@edgeandnode/go": "4.0.0-global-header-1703167287784-4d7f05b34403f749b2baf2c11af2882b2acb4b11", + "@edgeandnode/gds": "3.0.0-global-header-1703180036960-6b16dd059ed284aceacf266e91ef74c6e7a1ee3b", + "@edgeandnode/go": "4.0.0-global-header-1703180036960-6b16dd059ed284aceacf266e91ef74c6e7a1ee3b", "@emotion/react": "^11.11", "next": "^13", "next-seo": "^6", @@ -43,8 +43,8 @@ "react-use": "^17.4.2" }, "devDependencies": { - "@edgeandnode/gds": "3.0.0-global-header-1703167287784-4d7f05b34403f749b2baf2c11af2882b2acb4b11", - "@edgeandnode/go": "4.0.0-global-header-1703167287784-4d7f05b34403f749b2baf2c11af2882b2acb4b11", + "@edgeandnode/gds": "3.0.0-global-header-1703180036960-6b16dd059ed284aceacf266e91ef74c6e7a1ee3b", + "@edgeandnode/go": "4.0.0-global-header-1703180036960-6b16dd059ed284aceacf266e91ef74c6e7a1ee3b", "@emotion/react": "^11.11.1", "@types/lodash": "^4.14.202", "@types/react": "^18.2.45", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 11e576a36b2e..41b810547f69 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -73,11 +73,11 @@ importers: version: 17.4.2(react-dom@18.2.0)(react@18.2.0) devDependencies: '@edgeandnode/gds': - specifier: 3.0.0-global-header-1703167287784-4d7f05b34403f749b2baf2c11af2882b2acb4b11 - version: 3.0.0-global-header-1703167287784-4d7f05b34403f749b2baf2c11af2882b2acb4b11(@emotion/react@11.11.1)(@theme-ui/core@0.16.1)(@types/react-dom@18.2.18)(@types/react@18.2.45)(dayjs@1.11.10)(hardhat@2.19.3)(next@14.0.4)(prop-types@15.8.1)(react-dom@18.2.0)(react@18.2.0)(theme-ui@0.16.1) + specifier: 3.0.0-global-header-1703180036960-6b16dd059ed284aceacf266e91ef74c6e7a1ee3b + version: 3.0.0-global-header-1703180036960-6b16dd059ed284aceacf266e91ef74c6e7a1ee3b(@emotion/react@11.11.1)(@theme-ui/core@0.16.1)(@types/react-dom@18.2.18)(@types/react@18.2.45)(dayjs@1.11.10)(hardhat@2.19.3)(next@14.0.4)(prop-types@15.8.1)(react-dom@18.2.0)(react@18.2.0)(theme-ui@0.16.1) '@edgeandnode/go': - specifier: 4.0.0-global-header-1703167287784-4d7f05b34403f749b2baf2c11af2882b2acb4b11 - version: 4.0.0-global-header-1703167287784-4d7f05b34403f749b2baf2c11af2882b2acb4b11(@edgeandnode/common@5.29.1)(@edgeandnode/gds@3.0.0-global-header-1703167287784-4d7f05b34403f749b2baf2c11af2882b2acb4b11)(@emotion/react@11.11.1)(@types/react-dom@18.2.18)(@types/react@18.2.45)(next@14.0.4)(react-dom@18.2.0)(react@18.2.0)(theme-ui@0.16.1) + specifier: 4.0.0-global-header-1703180036960-6b16dd059ed284aceacf266e91ef74c6e7a1ee3b + version: 4.0.0-global-header-1703180036960-6b16dd059ed284aceacf266e91ef74c6e7a1ee3b(@edgeandnode/common@5.29.1)(@edgeandnode/gds@3.0.0-global-header-1703180036960-6b16dd059ed284aceacf266e91ef74c6e7a1ee3b)(@emotion/react@11.11.1)(@types/react-dom@18.2.18)(@types/react@18.2.45)(next@14.0.4)(react-dom@18.2.0)(react@18.2.0)(theme-ui@0.16.1) '@emotion/react': specifier: ^11.11.1 version: 11.11.1(@types/react@18.2.45)(react@18.2.0) @@ -164,11 +164,11 @@ importers: specifier: ^5.29.1 version: 5.29.1(hardhat@2.19.3) '@edgeandnode/gds': - specifier: 3.0.0-global-header-1703167287784-4d7f05b34403f749b2baf2c11af2882b2acb4b11 - version: 3.0.0-global-header-1703167287784-4d7f05b34403f749b2baf2c11af2882b2acb4b11(@emotion/react@11.11.1)(@theme-ui/core@0.16.1)(@types/react-dom@18.2.18)(@types/react@18.2.45)(dayjs@1.11.10)(hardhat@2.19.3)(next@14.0.4)(prop-types@15.8.1)(react-dom@18.2.0)(react@18.2.0)(theme-ui@0.16.1) + specifier: 3.0.0-global-header-1703180036960-6b16dd059ed284aceacf266e91ef74c6e7a1ee3b + version: 3.0.0-global-header-1703180036960-6b16dd059ed284aceacf266e91ef74c6e7a1ee3b(@emotion/react@11.11.1)(@theme-ui/core@0.16.1)(@types/react-dom@18.2.18)(@types/react@18.2.45)(dayjs@1.11.10)(hardhat@2.19.3)(next@14.0.4)(prop-types@15.8.1)(react-dom@18.2.0)(react@18.2.0)(theme-ui@0.16.1) '@edgeandnode/go': - specifier: 4.0.0-global-header-1703167287784-4d7f05b34403f749b2baf2c11af2882b2acb4b11 - version: 4.0.0-global-header-1703167287784-4d7f05b34403f749b2baf2c11af2882b2acb4b11(@edgeandnode/common@5.29.1)(@edgeandnode/gds@3.0.0-global-header-1703167287784-4d7f05b34403f749b2baf2c11af2882b2acb4b11)(@emotion/react@11.11.1)(@types/react-dom@18.2.18)(@types/react@18.2.45)(next@14.0.4)(react-dom@18.2.0)(react@18.2.0)(theme-ui@0.16.1) + specifier: 4.0.0-global-header-1703180036960-6b16dd059ed284aceacf266e91ef74c6e7a1ee3b + version: 4.0.0-global-header-1703180036960-6b16dd059ed284aceacf266e91ef74c6e7a1ee3b(@edgeandnode/common@5.29.1)(@edgeandnode/gds@3.0.0-global-header-1703180036960-6b16dd059ed284aceacf266e91ef74c6e7a1ee3b)(@emotion/react@11.11.1)(@types/react-dom@18.2.18)(@types/react@18.2.45)(next@14.0.4)(react-dom@18.2.0)(react@18.2.0)(theme-ui@0.16.1) '@emotion/react': specifier: ^11.11.1 version: 11.11.1(@types/react@18.2.45)(react@18.2.0) @@ -2016,8 +2016,8 @@ packages: - supports-color dev: true - /@edgeandnode/gds@3.0.0-global-header-1703167287784-4d7f05b34403f749b2baf2c11af2882b2acb4b11(@emotion/react@11.11.1)(@theme-ui/core@0.16.1)(@types/react-dom@18.2.18)(@types/react@18.2.45)(dayjs@1.11.10)(hardhat@2.19.3)(next@14.0.4)(prop-types@15.8.1)(react-dom@18.2.0)(react@18.2.0)(theme-ui@0.16.1): - resolution: {integrity: sha512-nOjpDQ8+mE+pkR4j3tOWfPhVIavZAJpvis1h7zdbDj+P4EXTLMaDGqUCdTLKExfhc8N7b0N4yS/k+gG+ONmW8A==} + /@edgeandnode/gds@3.0.0-global-header-1703180036960-6b16dd059ed284aceacf266e91ef74c6e7a1ee3b(@emotion/react@11.11.1)(@theme-ui/core@0.16.1)(@types/react-dom@18.2.18)(@types/react@18.2.45)(dayjs@1.11.10)(hardhat@2.19.3)(next@14.0.4)(prop-types@15.8.1)(react-dom@18.2.0)(react@18.2.0)(theme-ui@0.16.1): + resolution: {integrity: sha512-J3iuL3r12vmzLHmFdtZzigpDMJrVhVxmtutIglI4I4XlgOXi+f8DxOBrlK0DIqOl1GEzR3PcVIFMpr361OSBeg==} peerDependencies: '@emotion/react': ^11 dayjs: ^1.11 @@ -2082,11 +2082,11 @@ packages: - prop-types - utf-8-validate - /@edgeandnode/go@4.0.0-global-header-1703167287784-4d7f05b34403f749b2baf2c11af2882b2acb4b11(@edgeandnode/common@5.29.1)(@edgeandnode/gds@3.0.0-global-header-1703167287784-4d7f05b34403f749b2baf2c11af2882b2acb4b11)(@emotion/react@11.11.1)(@types/react-dom@18.2.18)(@types/react@18.2.45)(next@14.0.4)(react-dom@18.2.0)(react@18.2.0)(theme-ui@0.16.1): - resolution: {integrity: sha512-R4xI5Y7p17OYn7OU3wjZrs/9FQWEJ/p5cX0kruZhMrKS99SePWRhaC/sBV/j/0qYc6AmEsZc4qg1bU7kzEaq8Q==} + /@edgeandnode/go@4.0.0-global-header-1703180036960-6b16dd059ed284aceacf266e91ef74c6e7a1ee3b(@edgeandnode/common@5.29.1)(@edgeandnode/gds@3.0.0-global-header-1703180036960-6b16dd059ed284aceacf266e91ef74c6e7a1ee3b)(@emotion/react@11.11.1)(@types/react-dom@18.2.18)(@types/react@18.2.45)(next@14.0.4)(react-dom@18.2.0)(react@18.2.0)(theme-ui@0.16.1): + resolution: {integrity: sha512-bx/Nisv4e6TzzNO3yPG71/gRiN4D7NgDwa950iM3CDFWaMX782/tUOgdlwuzEME6iT5C9XQsu/QknC4DTWEBpQ==} peerDependencies: - '@edgeandnode/common': ^5.29.0 - '@edgeandnode/gds': ^3.0.0-global-header-1703167287784-4d7f05b34403f749b2baf2c11af2882b2acb4b11 + '@edgeandnode/common': ^5.29.1 + '@edgeandnode/gds': ^3.0.0-global-header-1703180036960-6b16dd059ed284aceacf266e91ef74c6e7a1ee3b '@emotion/react': ^11.11 next: ^13 react: ^18 @@ -2097,7 +2097,7 @@ packages: optional: true dependencies: '@edgeandnode/common': 5.29.1(hardhat@2.19.3) - '@edgeandnode/gds': 3.0.0-global-header-1703167287784-4d7f05b34403f749b2baf2c11af2882b2acb4b11(@emotion/react@11.11.1)(@theme-ui/core@0.16.1)(@types/react-dom@18.2.18)(@types/react@18.2.45)(dayjs@1.11.10)(hardhat@2.19.3)(next@14.0.4)(prop-types@15.8.1)(react-dom@18.2.0)(react@18.2.0)(theme-ui@0.16.1) + '@edgeandnode/gds': 3.0.0-global-header-1703180036960-6b16dd059ed284aceacf266e91ef74c6e7a1ee3b(@emotion/react@11.11.1)(@theme-ui/core@0.16.1)(@types/react-dom@18.2.18)(@types/react@18.2.45)(dayjs@1.11.10)(hardhat@2.19.3)(next@14.0.4)(prop-types@15.8.1)(react-dom@18.2.0)(react@18.2.0)(theme-ui@0.16.1) '@emotion/react': 11.11.1(@types/react@18.2.45)(react@18.2.0) '@radix-ui/react-dialog': 1.0.5(@types/react-dom@18.2.18)(@types/react@18.2.45)(react-dom@18.2.0)(react@18.2.0) '@radix-ui/react-navigation-menu': 1.1.4(@types/react-dom@18.2.18)(@types/react@18.2.45)(react-dom@18.2.0)(react@18.2.0) @@ -10893,7 +10893,7 @@ packages: human-signals: 4.3.1 is-stream: 3.0.0 merge-stream: 2.0.0 - npm-run-path: 5.1.0 + npm-run-path: 5.2.0 onetime: 6.0.0 signal-exit: 3.0.7 strip-final-newline: 3.0.0 @@ -10908,7 +10908,7 @@ packages: human-signals: 5.0.0 is-stream: 3.0.0 merge-stream: 2.0.0 - npm-run-path: 5.1.0 + npm-run-path: 5.2.0 onetime: 6.0.0 signal-exit: 4.1.0 strip-final-newline: 3.0.0 @@ -14609,8 +14609,8 @@ packages: path-key: 3.1.1 dev: true - /npm-run-path@5.1.0: - resolution: {integrity: sha512-sJOdmRGrY2sjNTRMbSvluQqg+8X7ZK61yvzBEIDhz4f8z1TZFYABsqjjCBd/0PUNE9M6QDgHJXQkGUEm7Q+l9Q==} + /npm-run-path@5.2.0: + resolution: {integrity: sha512-W4/tgAXFqFA0iL7fk0+uQ3g7wkL8xJmx3XdK0VGb4cHW//eZTtKGvFBBoRKVTpY7n6ze4NL9ly7rgXcHufqXKg==} engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} dependencies: path-key: 4.0.0 diff --git a/website/i18n.ts b/website/i18n.ts index af101249268f..587bb7176ced 100644 --- a/website/i18n.ts +++ b/website/i18n.ts @@ -1,10 +1,12 @@ import { Locale, NestedStrings, Translations, useI18n as _useI18n } from '@edgeandnode/gds' import ar from '@/pages/ar/translations' +import cs from '@/pages/cs/translations' import de from '@/pages/de/translations' import en from '@/pages/en/translations' import es from '@/pages/es/translations' import fr from '@/pages/fr/translations' +import ha from '@/pages/ha/translations' import hi from '@/pages/hi/translations' import it from '@/pages/it/translations' import ja from '@/pages/ja/translations' @@ -13,20 +15,24 @@ import mr from '@/pages/mr/translations' import nl from '@/pages/nl/translations' import pl from '@/pages/pl/translations' import pt from '@/pages/pt/translations' +import ro from '@/pages/ro/translations' import ru from '@/pages/ru/translations' import sv from '@/pages/sv/translations' import tr from '@/pages/tr/translations' import uk from '@/pages/uk/translations' import ur from '@/pages/ur/translations' import vi from '@/pages/vi/translations' +import yo from '@/pages/yo/translations' import zh from '@/pages/zh/translations' const appLocales = [ Locale.ARABIC, + // Locale.CZECH, // Locale.GERMAN, Locale.ENGLISH, Locale.SPANISH, // Locale.FRENCH, + // Locale.HAUSA, Locale.HINDI, // Locale.ITALIAN, Locale.JAPANESE, @@ -35,12 +41,14 @@ const appLocales = [ // Locale.DUTCH, // Locale.POLISH, Locale.PORTUGUESE, + // Locale.ROMANIAN, Locale.RUSSIAN, - // Locale.SWEDISH, - // Locale.TURKISH, + Locale.SWEDISH, + Locale.TURKISH, // Locale.UKRAINIAN, Locale.URDU, // Locale.VIETNAMESE, + // Locale.YORUBA, Locale.CHINESE, ] as const @@ -63,10 +71,12 @@ export type AppTranslations = Translations & { export const translations = { ar, + cs, de, en, es, fr, + ha, hi, it, ja, @@ -75,12 +85,14 @@ export const translations = { nl, pl, pt, + ro, ru, sv, tr, uk, ur, vi, + yo, zh, } satisfies AppTranslations diff --git a/website/package.json b/website/package.json index ee485db19776..5fd08d4fa00d 100644 --- a/website/package.json +++ b/website/package.json @@ -14,8 +14,8 @@ }, "dependencies": { "@edgeandnode/common": "^5.29.1", - "@edgeandnode/gds": "3.0.0-global-header-1703167287784-4d7f05b34403f749b2baf2c11af2882b2acb4b11", - "@edgeandnode/go": "4.0.0-global-header-1703167287784-4d7f05b34403f749b2baf2c11af2882b2acb4b11", + "@edgeandnode/gds": "3.0.0-global-header-1703180036960-6b16dd059ed284aceacf266e91ef74c6e7a1ee3b", + "@edgeandnode/go": "4.0.0-global-header-1703180036960-6b16dd059ed284aceacf266e91ef74c6e7a1ee3b", "@emotion/react": "^11.11.1", "@graphprotocol/nextra-theme": "workspace:*", "mixpanel-browser": "^2.48.1", diff --git a/website/pages/cs/translations.ts b/website/pages/cs/translations.ts new file mode 100644 index 000000000000..340f7eeea339 --- /dev/null +++ b/website/pages/cs/translations.ts @@ -0,0 +1,13 @@ +import supportedNetworks from './developing/supported-networks.json' +import docsearch from './docsearch.json' +import global from './global.json' +import index from './index.json' + +const translations = { + global, + index, + docsearch, + supportedNetworks, +} + +export default translations diff --git a/website/pages/ha/translations.ts b/website/pages/ha/translations.ts new file mode 100644 index 000000000000..340f7eeea339 --- /dev/null +++ b/website/pages/ha/translations.ts @@ -0,0 +1,13 @@ +import supportedNetworks from './developing/supported-networks.json' +import docsearch from './docsearch.json' +import global from './global.json' +import index from './index.json' + +const translations = { + global, + index, + docsearch, + supportedNetworks, +} + +export default translations diff --git a/website/pages/ro/translations.ts b/website/pages/ro/translations.ts new file mode 100644 index 000000000000..340f7eeea339 --- /dev/null +++ b/website/pages/ro/translations.ts @@ -0,0 +1,13 @@ +import supportedNetworks from './developing/supported-networks.json' +import docsearch from './docsearch.json' +import global from './global.json' +import index from './index.json' + +const translations = { + global, + index, + docsearch, + supportedNetworks, +} + +export default translations diff --git a/website/pages/yo/translations.ts b/website/pages/yo/translations.ts new file mode 100644 index 000000000000..340f7eeea339 --- /dev/null +++ b/website/pages/yo/translations.ts @@ -0,0 +1,13 @@ +import supportedNetworks from './developing/supported-networks.json' +import docsearch from './docsearch.json' +import global from './global.json' +import index from './index.json' + +const translations = { + global, + index, + docsearch, + supportedNetworks, +} + +export default translations