From 75a6cf30dd90ed5d26d9532d21866e96710d9196 Mon Sep 17 00:00:00 2001 From: ReenigneArcher <42013603+ReenigneArcher@users.noreply.github.com> Date: Tue, 26 Mar 2024 18:09:23 -0400 Subject: [PATCH] feat(i18n): localize preferences (#159) --- .../Services/URL/YouTube/ServicePrefs.json | 4 ++-- Contents/Strings/en.json | 4 ++++ crowdin.yml | 24 +++++++++++++++++++ 3 files changed, 30 insertions(+), 2 deletions(-) create mode 100644 Contents/Strings/en.json create mode 100644 crowdin.yml diff --git a/Contents/Services/URL/YouTube/ServicePrefs.json b/Contents/Services/URL/YouTube/ServicePrefs.json index 3942b2f..2317a03 100644 --- a/Contents/Services/URL/YouTube/ServicePrefs.json +++ b/Contents/Services/URL/YouTube/ServicePrefs.json @@ -2,14 +2,14 @@ { "id": "str_youtube_user", "type": "text", - "label": "YouTube Username", + "label": "str_youtube_user", "default": "", "secure": "true" }, { "id": "str_youtube_passwd", "type": "text", - "label": "YouTube Password", + "label": "str_youtube_passwd", "default": "", "option": "hidden", "secure": "true" diff --git a/Contents/Strings/en.json b/Contents/Strings/en.json new file mode 100644 index 0000000..fcd061b --- /dev/null +++ b/Contents/Strings/en.json @@ -0,0 +1,4 @@ +{ + "str_youtube_passwd": "YouTube Password", + "str_youtube_user": "YouTube Username" +} diff --git a/crowdin.yml b/crowdin.yml new file mode 100644 index 0000000..336691b --- /dev/null +++ b/crowdin.yml @@ -0,0 +1,24 @@ +--- +"base_path": "." +"base_url": "https://api.crowdin.com" # optional (for Crowdin Enterprise only) +"preserve_hierarchy": true # false will flatten tree on crowdin, but doesn't work with dest option +"pull_request_labels": [ + "crowdin", + "l10n" +] + +"files": [ + { + "source": "/Contents/Strings/en.json", + "dest": "/retroarcher-plex.json", + "translation": "/Contents/Strings/%two_letters_code%.%file_extension%", + "languages_mapping": { + "two_letters_code": { + # map non-two letter codes here, left side is crowdin designation, right side is plex designation + "en-GB": "en-gb", + "en-US": "en-us" + } + }, + "update_option": "update_as_unapproved" + } +]