|
1 | 1 | # Translation
|
2 | 2 |
|
3 |
| -The package offers translations for the quill toolbar and editor, it will follow the locale that is defined in your `WidgetsApp` for example `MaterialApp` which usually follow the system local and it unless you set your own locale with: |
| 3 | +The package offers translations for the quill toolbar and editor, it will follow the locale that is defined in your `WidgetsApp` for example `MaterialApp` which usually follows the system locally unless you set your own locale with: |
4 | 4 |
|
5 | 5 | ```dart
|
6 | 6 | QuillProvider(
|
@@ -38,14 +38,14 @@ Currently, translations are available for these 31 locales:
|
38 | 38 |
|
39 | 39 | #### Contributing to translations
|
40 | 40 |
|
41 |
| -The translation files is located at [l10n folder](../lib/src/l10n/). Feel free to contribute your own translations, just copy the [English translations](../lib/src/l10n/quill_en.arb) map and replace the values with your translations. |
| 41 | +The translation files are located in the [l10n folder](../lib/src/l10n/). Feel free to contribute your own translations, just copy the [English translations](../lib/src/l10n/quill_en.arb) map and replace the values with your translations. |
42 | 42 |
|
43 |
| -Add new file in the l10n folder with the following name |
| 43 | +Add a new file in the l10n folder with the following name |
44 | 44 | `quill_${localName}.arb` for example `quill_de.arb`
|
45 | 45 |
|
46 | 46 | paste the English version and replace the values
|
47 | 47 |
|
48 |
| -Also you can take a look at the [untranslated.json](../lib/src/l10n/untranslated.json) json file, which is a generated file that tell you which keys with which locales hasn't translated so you can find the missings easily |
| 48 | +Also, you can take a look at the [untranslated.json](../lib/src/l10n/untranslated.json) JSON file, which is a generated file that tells you which keys with which locales haven't translated so you can find the missings easily |
49 | 49 |
|
50 | 50 | After you are done and want to test the changes, run the following in the root folder (preferred):
|
51 | 51 |
|
|
60 | 60 | ```
|
61 | 61 |
|
62 | 62 |
|
63 |
| -This will generate the new dart files from the arb files in order to take affect, otherwise you won't notice a difference |
| 63 | +This will generate the new dart files from the arb files in order to take effect, otherwise, you won't notice a difference |
64 | 64 |
|
65 |
| - Then open a pull request so everyone can benefit from your translations! |
| 65 | + Then open a pull request so everyone can benefit from your translations! |
0 commit comments