Skip to content

Commit

Permalink
feat(i18n): add catalan and valencian translations (#1823)
Browse files Browse the repository at this point in the history
  • Loading branch information
carlesbarreda authored Feb 25, 2023
1 parent 5259f69 commit 1356f86
Show file tree
Hide file tree
Showing 4 changed files with 1,035 additions and 0 deletions.
12 changes: 12 additions & 0 deletions config/i18n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,13 @@ const countryLocaleVariants: Record<string, LocaleObjectData[]> = {
{ code: 'en-US', name: 'English (US)' },
{ code: 'en-GB', name: 'English (UK)' },
],
ca: [
// { code: 'ca-AD', name: 'Català (Andorra)' },
{ code: 'ca-ES', name: 'Català (Espanya)' },
{ code: 'ca-valencia', name: 'Català (valencià)' },
// { code: 'ca-FR', name: 'Català (França)' },
// { code: 'ca-IT', name: 'Català (Itàlia)' },
],
es: [
// { code: 'es-AR', name: 'Español (Argentina)' },
// { code: 'es-BO', name: 'Español (Bolivia)' },
Expand Down Expand Up @@ -74,6 +81,11 @@ const locales: LocaleObjectData[] = [
return { zero: 0, one: 1, two: 2, few: 3, many: 4, other: 5 }[name]
},
} satisfies LocaleObjectData),
{
code: 'ca',
file: 'ca.json',
name: 'Català',
},
{
code: 'de-DE',
file: 'de-DE.json',
Expand Down
1 change: 1 addition & 0 deletions locales/ca-ES.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
Loading

0 comments on commit 1356f86

Please sign in to comment.