From 11cf6a14b0b77490e717a3aab1cc9f92720991dd Mon Sep 17 00:00:00 2001 From: LinaYahya Date: Thu, 4 Apr 2024 16:21:59 +0200 Subject: [PATCH 1/2] feat: add action types translation --- 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..b401ef37 --- /dev/null +++ b/src/langs/en/actionTypes.json @@ -0,0 +1,19 @@ +{ + "collection-view": "collection view", + "chat_clear": "clear chat", + "chat_delete": "delete chat", + "chat_update": "update chat", + "chat_create": "create chat", + "delete": "item delete", + "update": "item update", + "copy": "item copy", + "create": "create item", + "move": "move item", + "item-search": "item search", + "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 @@ +{} From 81102745e494bca79013ad3dffb5b0ac623ba576 Mon Sep 17 00:00:00 2001 From: LinaYahya Date: Thu, 11 Apr 2024 17:08:46 +0200 Subject: [PATCH 2/2] fix: trans action types --- src/langs/en/actionTypes.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/langs/en/actionTypes.json b/src/langs/en/actionTypes.json index b401ef37..40ba375b 100644 --- a/src/langs/en/actionTypes.json +++ b/src/langs/en/actionTypes.json @@ -1,15 +1,15 @@ { - "collection-view": "collection view", + "collection-view": "view collection", "chat_clear": "clear chat", "chat_delete": "delete chat", "chat_update": "update chat", "chat_create": "create chat", - "delete": "item delete", - "update": "item update", - "copy": "item copy", + "delete": "delete item", + "update": "update item", + "copy": "copy item", "create": "create item", "move": "move item", - "item-search": "item search", + "item-search": "search item", "item-embed": "embed item", "item-unlike": "unlike item", "item-like": "like item",