Skip to content

Commit

Permalink
Update locales from GDS + enable Swedish and Turkish languages
Browse files Browse the repository at this point in the history
  • Loading branch information
benface committed Dec 21, 2023
1 parent c542ccb commit eeebde2
Show file tree
Hide file tree
Showing 8 changed files with 91 additions and 27 deletions.
8 changes: 4 additions & 4 deletions packages/nextra-theme/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down
38 changes: 19 additions & 19 deletions pnpm-lock.yaml

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

16 changes: 14 additions & 2 deletions website/i18n.ts
Original file line number Diff line number Diff line change
@@ -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'
Expand All @@ -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,
Expand All @@ -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

Expand All @@ -63,10 +71,12 @@ export type AppTranslations = Translations & {

export const translations = {
ar,
cs,
de,
en,
es,
fr,
ha,
hi,
it,
ja,
Expand All @@ -75,12 +85,14 @@ export const translations = {
nl,
pl,
pt,
ro,
ru,
sv,
tr,
uk,
ur,
vi,
yo,
zh,
} satisfies AppTranslations

Expand Down
4 changes: 2 additions & 2 deletions website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
13 changes: 13 additions & 0 deletions website/pages/cs/translations.ts
Original file line number Diff line number Diff line change
@@ -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
13 changes: 13 additions & 0 deletions website/pages/ha/translations.ts
Original file line number Diff line number Diff line change
@@ -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
13 changes: 13 additions & 0 deletions website/pages/ro/translations.ts
Original file line number Diff line number Diff line change
@@ -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
13 changes: 13 additions & 0 deletions website/pages/yo/translations.ts
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit eeebde2

Please sign in to comment.