Skip to content
This repository has been archived by the owner on Aug 9, 2024. It is now read-only.

Commit

Permalink
feat(i18n): localize preferences (#159)
Browse files Browse the repository at this point in the history
  • Loading branch information
ReenigneArcher authored Mar 26, 2024
1 parent ab26f1e commit 75a6cf3
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Contents/Services/URL/YouTube/ServicePrefs.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 4 additions & 0 deletions Contents/Strings/en.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"str_youtube_passwd": "YouTube Password",
"str_youtube_user": "YouTube Username"
}
24 changes: 24 additions & 0 deletions crowdin.yml
Original file line number Diff line number Diff line change
@@ -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"
}
]

0 comments on commit 75a6cf3

Please sign in to comment.