Skip to content

Commit

Permalink
feat: add action types translation (#393)
Browse files Browse the repository at this point in the history
* feat: add action types translation

* fix: trans action types
  • Loading branch information
LinaYahya authored Apr 11, 2024
1 parent 4b19c2e commit 361b857
Show file tree
Hide file tree
Showing 7 changed files with 37 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/langs/ar/actionTypes.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
1 change: 1 addition & 0 deletions src/langs/de/actionTypes.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
19 changes: 19 additions & 0 deletions src/langs/en/actionTypes.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"collection-view": "view collection",
"chat_clear": "clear chat",
"chat_delete": "delete chat",
"chat_update": "update chat",
"chat_create": "create chat",
"delete": "delete item",
"update": "update item",
"copy": "copy item",
"create": "create item",
"move": "move item",
"item-search": "search item",
"item-embed": "embed item",
"item-unlike": "unlike item",
"item-like": "like item",
"item-download": "download item",
"link-open": "open link",
"item-view": "view item"
}
1 change: 1 addition & 0 deletions src/langs/es/actionTypes.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
1 change: 1 addition & 0 deletions src/langs/fr/actionTypes.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
13 changes: 13 additions & 0 deletions src/langs/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,12 @@ import maxWidthDE from './de/maxWidth.json' with { type: 'json' };
import maxWidthIT from './it/maxWidth.json' with { type: 'json' };
import maxWidthAR from './ar/maxWidth.json' with { type: 'json' };
import maxWidthES from './es/maxWidth.json' with { type: 'json' };
import actionTypesEN from './en/actionTypes.json' with { type: 'json' };
import actionTypesFR from './fr/actionTypes.json' with { type: 'json' };
import actionTypesDE from './de/actionTypes.json' with { type: 'json' };
import actionTypesIT from './it/actionTypes.json' with { type: 'json' };
import actionTypesAR from './ar/actionTypes.json' with { type: 'json' };
import actionTypesES from './es/actionTypes.json' with { type: 'json' };

// define namespaces
export const namespaces = {
Expand All @@ -77,6 +83,7 @@ export const namespaces = {
mail: 'mail',
messages: 'messages',
uppy: 'uppy',
actionTypes: 'actionTypes',
};

const en = {
Expand All @@ -93,6 +100,7 @@ const en = {
},
[namespaces.messages]: messagesEN,
[namespaces.uppy]: uppyEN,
[namespaces.actionTypes]: actionTypesEN,
};

const fr = {
Expand All @@ -109,6 +117,7 @@ const fr = {
},
[namespaces.messages]: messagesFR,
[namespaces.uppy]: uppyFR,
[namespaces.actionTypes]: actionTypesFR,
};

const de = {
Expand All @@ -125,6 +134,7 @@ const de = {
},
[namespaces.messages]: messagesDE,
[namespaces.uppy]: uppyDE,
[namespaces.actionTypes]: actionTypesDE,
};

const it = {
Expand All @@ -141,6 +151,7 @@ const it = {
},
[namespaces.messages]: messagesIT,
[namespaces.uppy]: uppyIT,
[namespaces.actionTypes]: actionTypesIT,
};

const ar = {
Expand All @@ -157,6 +168,7 @@ const ar = {
},
[namespaces.messages]: messagesAR,
[namespaces.uppy]: uppyAR,
[namespaces.actionTypes]: actionTypesAR,
};

const es = {
Expand All @@ -173,6 +185,7 @@ const es = {
},
[namespaces.messages]: messagesES,
[namespaces.uppy]: uppyES,
[namespaces.actionTypes]: actionTypesES,
};

// other supported languages here
Expand Down
1 change: 1 addition & 0 deletions src/langs/it/actionTypes.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}

0 comments on commit 361b857

Please sign in to comment.