From 6850bc509dfe8bc6560c4b9d4ff6ea9bf5b13d4d Mon Sep 17 00:00:00 2001 From: kirbypls <87780828+kirbypls@users.noreply.github.com> Date: Thu, 21 Oct 2021 19:50:37 -0300 Subject: [PATCH] Destroyed How to add a new language (markdown) --- How-to-add-a-new-language.md | 11 ----------- 1 file changed, 11 deletions(-) delete mode 100644 How-to-add-a-new-language.md diff --git a/How-to-add-a-new-language.md b/How-to-add-a-new-language.md deleted file mode 100644 index f37ec87..0000000 --- a/How-to-add-a-new-language.md +++ /dev/null @@ -1,11 +0,0 @@ -If you want to add a translation for OpenSupports, you'll need to [create a Pull Request](https://help.github.com/articles/creating-a-pull-request-from-a-fork/) to this repository from a fork with the necessary code changes. - -The changes that need to be made are the following: -1. Create corresponding `.js` translation file in the folder [client/src/data/languages](https://github.com/opensupports/opensupports/tree/master/client/src/data/languages), you can take `en.js` as a template. Please use a [two-letter code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) for each language. -2. Add the language code and require the newly created file in [language-list.js](https://github.com/opensupports/opensupports/blob/master/client/src/data/language-list.js) -3. Add the language code to the `LANGUAGES` constant in [Language.php](https://github.com/opensupports/opensupports/blob/master/server/models/Language.php#L6) -4. Create a element with the language code in the array returned by `getTexts()` in [MailTexts.php](https://github.com/opensupports/opensupports/blob/master/server/data/MailTexts.php). Insert the corresponding translations for each mail template. - -Once the changes are made, you can create a PR with those. Once it's merged, you will need to wait to the next OpenSupports release to see the changes. - -If you want to test the changes you can build your own version by setting up the development environment and [building a package](https://github.com/opensupports/opensupports/blob/master/README.md#building). It will create a `.zip` file ready for installation with your changes. \ No newline at end of file