docs: update translate.md (#5363)
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
First of all, thanks a lot for considering helping the project by translating it. We truly appreciate it.
|
||||
|
||||
## Crowdin
|
||||
|
||||
All translations are done with [crowdin](https://crowdin.com/project/monicahq) - we'd like to thank them for their gracious help with this project by providing us a free account.
|
||||
|
||||
## Support a new language
|
||||
@@ -22,10 +23,9 @@ You can [open an issue](https://github.com/monicahq/monica/issues/new) to reques
|
||||
To enable a new language in Monica:
|
||||
* we have to configure it in Crowdin first. This is something we must do ourselves (we: members of the project). To do it, we need to go to Settings > Translations > Target Languages and add the new locale here.
|
||||
* add the name of the language in [the main English settings file](https://github.com/monicahq/monica/blob/master/resources/lang/en/settings.php).
|
||||
* update the [lang-detector.php file](https://github.com/monicahq/monica/blob/master/config/lang-detector.php) by adding the new locale abbreviation.
|
||||
* add the locale in the [webpack.mix.js file](https://github.com/monicahq/monica/blob/master/webpack.mix.js).
|
||||
* update the [lang-detector.php file](https://github.com/monicahq/monica/blob/master/config/lang-detector.php) by adding the new locale abbreviation (please add it in alphabetic order).
|
||||
* add the locale in the [webpack.mix.js file](https://github.com/monicahq/monica/blob/master/webpack.mix.js) (please add it in alphabetic order).
|
||||
* (optional) when adding a country-specific language (like 'en-GB'), you may need to update the [crowdin.yml config file](https://github.com/monicahq/monica/blob/master/crowdin.yml).
|
||||
* run `php artisan lang:generate` to generate the new JSON file, and run `yarn run production` to compile the JS with those new strings.
|
||||
|
||||
Then, submit your PR for review. A good example of adding a new locale can [be found here](https://github.com/monicahq/monica/pull/3356).
|
||||
|
||||
@@ -66,5 +66,5 @@ See https://en.wikipedia.org/wiki/Punctuation
|
||||
|
||||
- [Apostrophe](https://en.wikipedia.org/wiki/Apostrophe): use real apostrophe character `’` instead of simple quote `'`
|
||||
- [Quotes](https://en.wikipedia.org/wiki/Quotation_mark): use real quotation marks like `“ ”` or `« »` instead of double quote `"`
|
||||
- [Dash](https://en.wikipedia.org/wiki/Dash): use en dash `–` instead of hyphen `-` when it’s necessary
|
||||
- [Dash](https://en.wikipedia.org/wiki/Dash): use en dash `—` instead of hyphen `-` when it’s necessary
|
||||
- [Interpuct](https://en.wikipedia.org/wiki/Interpunct) for separate some lists: `·`
|
||||
|
||||
Reference in New Issue
Block a user