"...git@developer.sourcefind.cn:chenpangpang/open-webui.git" did not exist on "dbdc60279175e7cc2ad6b04ea96480b21ea728e6"
Commit b76eb46d authored by Ased Mammad's avatar Ased Mammad
Browse files

docs: Update contributing.md

parent f4a18852
...@@ -59,6 +59,7 @@ We use JSON files to store translations. You can find the existing translation f ...@@ -59,6 +59,7 @@ We use JSON files to store translations. You can find the existing translation f
To add a new language: To add a new language:
- Create a new directory in the `src/lib/i18n/locales` path with the appropriate language code as its name. For instance, if you're adding translations for Spanish, create a new directory named `es`. - Create a new directory in the `src/lib/i18n/locales` path with the appropriate language code as its name. For instance, if you're adding translations for Spanish, create a new directory named `es`.
- Copy the English translation file(s) (from `en` directory in `src/lib/i18n/locale`) to this new directory and update the string values in JSON format according to your language. Make sure to preserve the structure of the JSON object. - Copy the English translation file(s) (from `en` directory in `src/lib/i18n/locale`) to this new directory and update the string values in JSON format according to your language. Make sure to preserve the structure of the JSON object.
- Add the language code and its respective title to languages file at `src/lib/i18n/locales/languages.json`.
### 🤔 Questions & Feedback ### 🤔 Questions & Feedback
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment