Skip to content

Commit

Permalink
feat: add spanish (#309)
Browse files Browse the repository at this point in the history
  • Loading branch information
pyphilia authored Dec 22, 2023
1 parent 0f682d6 commit 7f52ed8
Show file tree
Hide file tree
Showing 15 changed files with 46 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/i18n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const langs = {
de: 'Deutsch',
// el: "Ελληνικά",
en: 'English',
// es: "Español",
es: 'Español',
// et: "Eesti",
// fi: "Suomi",
fr: 'Français',
Expand Down
1 change: 1 addition & 0 deletions src/langs/es/association.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
1 change: 1 addition & 0 deletions src/langs/es/auth.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
1 change: 1 addition & 0 deletions src/langs/es/categories.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
1 change: 1 addition & 0 deletions src/langs/es/chatbox.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
1 change: 1 addition & 0 deletions src/langs/es/common.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
1 change: 1 addition & 0 deletions src/langs/es/context.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
1 change: 1 addition & 0 deletions src/langs/es/flag.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
1 change: 1 addition & 0 deletions src/langs/es/itemType.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
1 change: 1 addition & 0 deletions src/langs/es/mail.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
1 change: 1 addition & 0 deletions src/langs/es/maxWidth.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
1 change: 1 addition & 0 deletions src/langs/es/messages.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
1 change: 1 addition & 0 deletions src/langs/es/permissionLevel.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
1 change: 1 addition & 0 deletions src/langs/es/uppy.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
33 changes: 32 additions & 1 deletion src/langs/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,66 +3,79 @@ import messagesFR from './fr/messages.json';
import messagesDE from './de/messages.json';
import messagesIT from './it/messages.json';
import messagesAR from './ar/messages.json';
import messagesES from './es/messages.json';
import chatboxEN from './en/chatbox.json';
import chatboxFR from './fr/chatbox.json';
import chatboxDE from './de/chatbox.json';
import chatboxIT from './it/chatbox.json';
import chatboxAR from './ar/chatbox.json';
import chatboxES from './es/chatbox.json';
import authEN from './en/auth.json';
import authFR from './fr/auth.json';
import authDE from './de/auth.json';
import authIT from './it/auth.json';
import authAR from './ar/auth.json';
import authES from './es/auth.json';
import categoriesEN from './en/categories.json';
import categoriesFR from './fr/categories.json';
import categoriesDE from './de/categories.json';
import categoriesIT from './it/categories.json';
import categoriesAR from './ar/categories.json';
import categoriesES from './es/categories.json';
import commonEN from './en/common.json';
import commonFR from './fr/common.json';
import commonDE from './de/common.json';
import commonIT from './it/common.json';
import commonAR from './ar/common.json';
import commonES from './es/common.json';
import permissionLevelEN from './en/permissionLevel.json';
import permissionLevelFR from './fr/permissionLevel.json';
import permissionLevelDE from './de/permissionLevel.json';
import permissionLevelIT from './it/permissionLevel.json';
import permissionLevelAR from './ar/permissionLevel.json';
import permissionLevelES from './es/permissionLevel.json';
import itemTypeEN from './en/itemType.json';
import itemTypeFR from './fr/itemType.json';
import itemTypeDE from './de/itemType.json';
import itemTypeIT from './it/itemType.json';
import itemTypeAR from './ar/itemType.json';
import itemTypeES from './es/itemType.json';
import contextEN from './en/context.json';
import contextFR from './fr/context.json';
import contextDE from './de/context.json';
import contextIT from './it/context.json';
import contextAR from './ar/context.json';
import contextES from './es/context.json';
import uppyEN from './en/uppy.json';
import uppyFR from './fr/uppy.json';
import uppyDE from './de/uppy.json';
import uppyIT from './it/uppy.json';
import uppyAR from './ar/uppy.json';
import uppyES from './es/uppy.json';
import associationEN from './en/association.json';
import associationFR from './fr/association.json';
import associationDE from './de/association.json';
import associationIT from './it/association.json';
import associationAR from './ar/association.json';
import associationES from './es/association.json';
import mailEN from './en/mail.json';
import mailFR from './fr/mail.json';
import mailDE from './de/mail.json';
import mailIT from './it/mail.json';
import mailAR from './ar/mail.json';
import mailES from './es/mail.json';
import flagEN from './en/flag.json';
import flagFR from './fr/flag.json';
import flagDE from './de/flag.json';
import flagIT from './it/flag.json';
import flagAR from './ar/flag.json';
import flagES from './es/flag.json';
import maxWidthEN from './en/maxWidth.json';
import maxWidthFR from './fr/maxWidth.json';
import maxWidthDE from './de/maxWidth.json';
import maxWidthIT from './it/maxWidth.json';
import maxWidthAR from './ar/maxWidth.json';
import maxWidthES from './es/maxWidth.json';

// define namespaces
export const namespaces = {
Expand Down Expand Up @@ -168,5 +181,23 @@ const ar = {
[namespaces.uppy]: uppyAR,
};

const es = {
[namespaces.association]: associationES,
[namespaces.auth]: authES,
[namespaces.categories]: categoriesES,
[namespaces.chatbox]: chatboxES,
[namespaces.common]: commonES,
[namespaces.enums]: {
...permissionLevelES,
...itemTypeES,
...contextES,
...flagES,
...maxWidthES,
},
[namespaces.mail]: mailES,
[namespaces.messages]: messagesES,
[namespaces.uppy]: uppyES,
};

// other supported languages here
export { en, fr, de, it, ar };
export { en, fr, de, it, ar, es };

0 comments on commit 7f52ed8

Please sign in to comment.