From 361b85780610fb5b9c5782a0309b1c6a246e3577 Mon Sep 17 00:00:00 2001 From: Lina Ebeid Date: Thu, 11 Apr 2024 17:10:24 +0200 Subject: [PATCH] feat: add action types translation (#393) * feat: add action types translation * fix: trans action types --- src/langs/ar/actionTypes.json | 1 + src/langs/de/actionTypes.json | 1 + src/langs/en/actionTypes.json | 19 +++++++++++++++++++ src/langs/es/actionTypes.json | 1 + src/langs/fr/actionTypes.json | 1 + src/langs/index.ts | 13 +++++++++++++ src/langs/it/actionTypes.json | 1 + 7 files changed, 37 insertions(+) create mode 100644 src/langs/ar/actionTypes.json create mode 100644 src/langs/de/actionTypes.json create mode 100644 src/langs/en/actionTypes.json create mode 100644 src/langs/es/actionTypes.json create mode 100644 src/langs/fr/actionTypes.json create mode 100644 src/langs/it/actionTypes.json diff --git a/src/langs/ar/actionTypes.json b/src/langs/ar/actionTypes.json new file mode 100644 index 00000000..0967ef42 --- /dev/null +++ b/src/langs/ar/actionTypes.json @@ -0,0 +1 @@ +{} diff --git a/src/langs/de/actionTypes.json b/src/langs/de/actionTypes.json new file mode 100644 index 00000000..0967ef42 --- /dev/null +++ b/src/langs/de/actionTypes.json @@ -0,0 +1 @@ +{} diff --git a/src/langs/en/actionTypes.json b/src/langs/en/actionTypes.json new file mode 100644 index 00000000..40ba375b --- /dev/null +++ b/src/langs/en/actionTypes.json @@ -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" +} diff --git a/src/langs/es/actionTypes.json b/src/langs/es/actionTypes.json new file mode 100644 index 00000000..0967ef42 --- /dev/null +++ b/src/langs/es/actionTypes.json @@ -0,0 +1 @@ +{} diff --git a/src/langs/fr/actionTypes.json b/src/langs/fr/actionTypes.json new file mode 100644 index 00000000..0967ef42 --- /dev/null +++ b/src/langs/fr/actionTypes.json @@ -0,0 +1 @@ +{} diff --git a/src/langs/index.ts b/src/langs/index.ts index 565dffde..f398285b 100644 --- a/src/langs/index.ts +++ b/src/langs/index.ts @@ -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 = { @@ -77,6 +83,7 @@ export const namespaces = { mail: 'mail', messages: 'messages', uppy: 'uppy', + actionTypes: 'actionTypes', }; const en = { @@ -93,6 +100,7 @@ const en = { }, [namespaces.messages]: messagesEN, [namespaces.uppy]: uppyEN, + [namespaces.actionTypes]: actionTypesEN, }; const fr = { @@ -109,6 +117,7 @@ const fr = { }, [namespaces.messages]: messagesFR, [namespaces.uppy]: uppyFR, + [namespaces.actionTypes]: actionTypesFR, }; const de = { @@ -125,6 +134,7 @@ const de = { }, [namespaces.messages]: messagesDE, [namespaces.uppy]: uppyDE, + [namespaces.actionTypes]: actionTypesDE, }; const it = { @@ -141,6 +151,7 @@ const it = { }, [namespaces.messages]: messagesIT, [namespaces.uppy]: uppyIT, + [namespaces.actionTypes]: actionTypesIT, }; const ar = { @@ -157,6 +168,7 @@ const ar = { }, [namespaces.messages]: messagesAR, [namespaces.uppy]: uppyAR, + [namespaces.actionTypes]: actionTypesAR, }; const es = { @@ -173,6 +185,7 @@ const es = { }, [namespaces.messages]: messagesES, [namespaces.uppy]: uppyES, + [namespaces.actionTypes]: actionTypesES, }; // other supported languages here diff --git a/src/langs/it/actionTypes.json b/src/langs/it/actionTypes.json new file mode 100644 index 00000000..0967ef42 --- /dev/null +++ b/src/langs/it/actionTypes.json @@ -0,0 +1 @@ +{}