Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add Romanian translation #3332

Merged
merged 9 commits into from
Aug 12, 2024
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions app/i18n/i18n-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export type Locales =
| 'nl'
| 'pt'
| 'qu'
| 'ro'
| 'sr'
| 'sw'
| 'th'
Expand Down
1 change: 1 addition & 0 deletions app/i18n/i18n-util.async.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ const localeTranslationLoaders = {
nl: () => import('./nl'),
pt: () => import('./pt'),
qu: () => import('./qu'),
ro: () => import('./ro'),
sr: () => import('./sr'),
sw: () => import('./sw'),
th: () => import('./th'),
Expand Down
2 changes: 2 additions & 0 deletions app/i18n/i18n-util.sync.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import ms from './ms'
import nl from './nl'
import pt from './pt'
import qu from './qu'
import ro from './ro'
import sr from './sr'
import sw from './sw'
import th from './th'
Expand Down Expand Up @@ -52,6 +53,7 @@ const localeTranslations = {
nl,
pt,
qu,
ro,
sr,
sw,
th,
Expand Down
1 change: 1 addition & 0 deletions app/i18n/i18n-util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export const locales: Locales[] = [
'nl',
'pt',
'qu',
'ro',
'sr',
'sw',
'th',
Expand Down
4 changes: 3 additions & 1 deletion app/i18n/mapping.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import "@formatjs/intl-relativetimeformat/locale-data/nl"
import "@formatjs/intl-relativetimeformat/locale-data/ms"
import "@formatjs/intl-relativetimeformat/locale-data/pt"
import "@formatjs/intl-relativetimeformat/locale-data/qu"
import "@formatjs/intl-relativetimeformat/locale-data/ro"
import "@formatjs/intl-relativetimeformat/locale-data/sr"
import "@formatjs/intl-relativetimeformat/locale-data/sw"
import "@formatjs/intl-relativetimeformat/locale-data/th"
Expand Down Expand Up @@ -51,9 +52,10 @@ export const LocaleToTranslateLanguageSelector = {
ms: "Bahasa Melayu",
pt: "Português",
qu: "Quechua",
ro: "Română",
sr: "Српски",
sw: "KiSwahili",
th: "ไทย",
tr: "Türkçe",
vi: "Tiếng Việt",
} as const
} as const
2,769 changes: 2,769 additions & 0 deletions app/i18n/raw-i18n/translations/ro.json

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions app/i18n/ro/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { Translation } from "../i18n-types"
import en from '../en'
import rawTranslated from '../raw-i18n/translations/ro.json'
import merge from "lodash.merge"

const translated: Translation = merge({}, en as Translation, rawTranslated)

export default translated
Loading