To address current language issues, follow these steps:
-
Locate the Corresponding File:
- Navigate to the
data
directory and open thelanguages.json
file. Find the language key corresponding to the issue and locate the respective language file in thedata\languages
directory.
- Navigate to the
-
Edit the Language File:
- Update the translation text in the identified language file with your suggested fixes.
-
Test the Language:
- Verify that the language texts fit within the UI widgets. If any text is too lengthy, consider using shorter forms or displaying them across multiple lines to ensure proper display and readability.
-
You're all set, just create the pull request.
To add a new language to the application, follow these steps:
-
Update
languages.json
:- Open the
languages.json
file located in thedata\
directory of the project (data\languages.json
). - Add a new entry to the JSON object with the language name as the key and a unique language code as the value.
Example:
{ "English": "en", # English "中文": "zh" # Chinese "Española": "es" # New entry for Spanish }
- Open the
-
Create the Language File:
-
Create a new JSON file in the data\languages directory with the name corresponding to the new language code.
- For example, for Spanish, create es.json in the data\languages directory.
-
Add the required translations
(check current languages files)
in this new JSON file.
Example (
es.json
):{ "video": "Video", "playlist": "Lista", "add +": "Añadir +", "added": "Añadido" }
-
-
Test the Language:
- Verify that the language texts fit within the UI widgets. If any text is too lengthy, consider using shorter forms or displaying them across multiple lines to ensure proper display and readability.
-
You're all set, just create the pull request
Thank you very much for your assistance with the languages in the app! Your help is greatly appreciated and will have a significant impact on our users. Excellent work!