From 613b0c1f42b5e7eee4da472ec389dd8c75a9b5be Mon Sep 17 00:00:00 2001 From: Naomi Calabretta Date: Sun, 26 May 2024 14:42:31 +0200 Subject: [PATCH] TRANSLATIONS! --- src/views/TabbedHomeView.vue | 12 ++--- src/views/options/About.vue | 2 +- src/views/options/Accessibility.vue | 26 +++++------ src/views/options/AppSettings.vue | 2 +- src/views/options/FrontHistory.vue | 2 +- src/views/options/ImportExport.vue | 10 ++-- src/views/options/MessageBoard.vue | 2 +- src/views/options/Reminders.vue | 2 +- src/views/options/Security.vue | 2 +- src/views/options/SystemSettings.vue | 2 +- src/views/options/TagManagement.vue | 2 +- src/views/tabbed/Chats.vue | 2 +- src/views/tabbed/Dashboard.vue | 2 +- src/views/tabbed/Journal.vue | 2 +- src/views/tabbed/Options.vue | 26 +++++------ translations/en/chats.json | 3 ++ translations/en/dashboard.json | 3 ++ translations/en/journal.json | 3 ++ translations/en/options.json | 70 ++++++++++++++++++++++++++++ translations/en/testingGrounds.json | 3 +- 20 files changed, 128 insertions(+), 50 deletions(-) create mode 100644 translations/en/chats.json create mode 100644 translations/en/dashboard.json create mode 100644 translations/en/journal.json create mode 100644 translations/en/options.json diff --git a/src/views/TabbedHomeView.vue b/src/views/TabbedHomeView.vue index 02cc42d..4195fa9 100644 --- a/src/views/TabbedHomeView.vue +++ b/src/views/TabbedHomeView.vue @@ -28,32 +28,32 @@ - Members + {{ $t("members:header") }} - Journal + {{ $t("journal:header") }} - Dashboard + {{ $t("dashboard:header") }} - Chats + {{ $t("chats:header") }} - Options + {{ $t("options:options.header") }} - Testing grounds + {{ $t("testingGrounds:header") }} diff --git a/src/views/options/About.vue b/src/views/options/About.vue index 974e639..039cb5e 100644 --- a/src/views/options/About.vue +++ b/src/views/options/About.vue @@ -11,7 +11,7 @@ - About + {{ $t("options:about.header") }} diff --git a/src/views/options/Accessibility.vue b/src/views/options/Accessibility.vue index 8916dda..a6ef2cc 100644 --- a/src/views/options/Accessibility.vue +++ b/src/views/options/Accessibility.vue @@ -30,7 +30,7 @@ - Accessibility + {{ $t("options:accessibility.header") }} @@ -40,30 +40,30 @@ -

High legibility font

-

Use OpenDyslexic instead of the standard device font

+

{{ $t("options:accessibility.highLegibilityFont.title") }}

+

{{ $t("options:accessibility.highLegibilityFont.desc") }}

-

UI variant

+

{{ $t("options:accessibility.uiVariant.title") }}

@@ -72,8 +72,8 @@ -

Accent color

-

Use a custom accent color

+

{{ $t("options:accessibility.accentColor.title") }}

+

{{ $t("options:accessibility.accentColor.desc") }}

@@ -81,15 +81,15 @@ -

Reduced motion

-

Disable in-app animations

+

{{ $t("options:accessibility.reducedMotion.title") }}

+

{{ $t("options:accessibility.reducedMotion.desc") }}

-

UI size

+

{{ $t("options:accessibility.fontScale.title") }}

-

Chat UI size

+

{{ $t("options:accessibility.chatFontScale.title") }}

- App settings + {{ $t("options:appSettings.header") }} diff --git a/src/views/options/FrontHistory.vue b/src/views/options/FrontHistory.vue index f8434bc..3b35a6d 100644 --- a/src/views/options/FrontHistory.vue +++ b/src/views/options/FrontHistory.vue @@ -11,7 +11,7 @@ - Front history + {{ $t("options:frontHistory.header") }} diff --git a/src/views/options/ImportExport.vue b/src/views/options/ImportExport.vue index ba2dfb1..8ee3d5f 100644 --- a/src/views/options/ImportExport.vue +++ b/src/views/options/ImportExport.vue @@ -27,7 +27,7 @@ - Import / Export + {{ $t("options:importExport.header") }} @@ -36,15 +36,15 @@ -

Export your data

-

Backup your current data to a file you can store somewhere else

+

{{ $t("options:importExport.export.title") }}

+

{{ $t("options:importExport.export.desc") }}

-

Import your data from a backup file

-

Warning! It will override any existing data

+

{{ $t("options:importExport.import.title") }}

+

{{ $t("options:importExport.import.desc") }}

diff --git a/src/views/options/MessageBoard.vue b/src/views/options/MessageBoard.vue index 1da4b0b..fa40c00 100644 --- a/src/views/options/MessageBoard.vue +++ b/src/views/options/MessageBoard.vue @@ -11,7 +11,7 @@ - Message board + {{ $t("options:messageBoard.header") }} diff --git a/src/views/options/Reminders.vue b/src/views/options/Reminders.vue index 5c156ab..f2c37f0 100644 --- a/src/views/options/Reminders.vue +++ b/src/views/options/Reminders.vue @@ -11,7 +11,7 @@ - Reminders + {{ $t("options:reminders.header") }} diff --git a/src/views/options/Security.vue b/src/views/options/Security.vue index aeed021..23276cc 100644 --- a/src/views/options/Security.vue +++ b/src/views/options/Security.vue @@ -11,7 +11,7 @@ - Security + {{ $t("options:security.header") }} diff --git a/src/views/options/SystemSettings.vue b/src/views/options/SystemSettings.vue index c0ea1bc..b3eae5f 100644 --- a/src/views/options/SystemSettings.vue +++ b/src/views/options/SystemSettings.vue @@ -47,7 +47,7 @@ - System name and photo + {{ $t("options:systemSettings.header") }} diff --git a/src/views/options/TagManagement.vue b/src/views/options/TagManagement.vue index 5bb69de..1f8ca61 100644 --- a/src/views/options/TagManagement.vue +++ b/src/views/options/TagManagement.vue @@ -11,7 +11,7 @@ - Tag management + {{ $t("options:tagManagement.header") }} diff --git a/src/views/tabbed/Chats.vue b/src/views/tabbed/Chats.vue index 4a5c912..1202540 100644 --- a/src/views/tabbed/Chats.vue +++ b/src/views/tabbed/Chats.vue @@ -10,7 +10,7 @@ - Chats + {{ $t("chats:header") }} diff --git a/src/views/tabbed/Dashboard.vue b/src/views/tabbed/Dashboard.vue index 4ad3af2..2f70c25 100644 --- a/src/views/tabbed/Dashboard.vue +++ b/src/views/tabbed/Dashboard.vue @@ -10,7 +10,7 @@ - Dashboard + {{ $t("dashboard:header") }} diff --git a/src/views/tabbed/Journal.vue b/src/views/tabbed/Journal.vue index ca83ddc..20dd0b6 100644 --- a/src/views/tabbed/Journal.vue +++ b/src/views/tabbed/Journal.vue @@ -10,7 +10,7 @@ - Journal + {{ $t("journal:header") }} diff --git a/src/views/tabbed/Options.vue b/src/views/tabbed/Options.vue index 672f37c..2eb11ba 100644 --- a/src/views/tabbed/Options.vue +++ b/src/views/tabbed/Options.vue @@ -34,7 +34,7 @@ - Options + {{ $t("options:options.header") }} @@ -42,67 +42,67 @@ - Management + {{ $t("options:options.managementLabel") }} - Settings + {{ $t("options:options.settingsLabel") }} diff --git a/translations/en/chats.json b/translations/en/chats.json new file mode 100644 index 0000000..cbf872c --- /dev/null +++ b/translations/en/chats.json @@ -0,0 +1,3 @@ +{ + "header": "Chats" +} \ No newline at end of file diff --git a/translations/en/dashboard.json b/translations/en/dashboard.json new file mode 100644 index 0000000..2895219 --- /dev/null +++ b/translations/en/dashboard.json @@ -0,0 +1,3 @@ +{ + "header": "Dashboard" +} \ No newline at end of file diff --git a/translations/en/journal.json b/translations/en/journal.json new file mode 100644 index 0000000..5f62e48 --- /dev/null +++ b/translations/en/journal.json @@ -0,0 +1,3 @@ +{ + "header": "Journal" +} \ No newline at end of file diff --git a/translations/en/options.json b/translations/en/options.json new file mode 100644 index 0000000..d3433a9 --- /dev/null +++ b/translations/en/options.json @@ -0,0 +1,70 @@ +{ + "options": { + "header": "Options", + "managementLabel": "Management", + "settingsLabel": "Settings" + }, + "systemSettings": { + "header": "System name and photo", + "systemName": "System name" + }, + "frontHistory": { + "header": "Front history" + }, + "messageBoard": { + "header": "Message board" + }, + "tagManagement": { + "header": "Tag management" + }, + "reminders": { + "header": "Reminders" + }, + "appSettings": { + "header": "App settings" + }, + "security": { + "header": "Security" + }, + "accessibility": { + "header": "Accessibility", + "highLegibilityFont": { + "title": "High legibility font", + "desc": "Use OpenDyslexic instead of the standard device font" + }, + "uiVariant": { + "title": "UI variant", + "auto": "Auto", + "light": "Light", + "dark": "Dark" + }, + "accentColor": { + "title": "Accent color", + "desc": "Use a custom accent color" + }, + "reducedMotion": { + "title": "Reduced motion", + "desc": "Disable in-app animations" + }, + "fontScale": { + "title": "UI size" + }, + "chatFontScale": { + "title": "Chat UI size" + } + }, + "importExport": { + "header": "Import / Export", + "import": { + "title": "Import your data from a backup file", + "desc": "Warning! It will override any existing data" + }, + "export": { + "title": "Export your data", + "desc": "Backup your current data to a file you can store somewhere else" + } + }, + "about": { + "header": "About" + } +} \ No newline at end of file diff --git a/translations/en/testingGrounds.json b/translations/en/testingGrounds.json index 1a6abf0..25d829f 100644 --- a/translations/en/testingGrounds.json +++ b/translations/en/testingGrounds.json @@ -1,4 +1,3 @@ { - "header": "Testing grounds", - "warning": "content here will change to test translations, dun worry" + "header": "Testing grounds" } \ No newline at end of file