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 action types translation #393

Merged
merged 2 commits into from
Apr 11, 2024
Merged
Show file tree
Hide file tree
Changes from all 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 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 @@
{}