Skip to content

Commit

Permalink
fix: typos translation.md
Browse files Browse the repository at this point in the history
  • Loading branch information
EchoEllet committed Nov 26, 2023
1 parent d368708 commit 712e236
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions doc/translation.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Translation

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:
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:

```dart
QuillProvider(
Expand Down Expand Up @@ -38,14 +38,14 @@ Currently, translations are available for these 31 locales:

#### Contributing to translations

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.
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.

Add new file in the l10n folder with the following name
Add a new file in the l10n folder with the following name
`quill_${localName}.arb` for example `quill_de.arb`

paste the English version and replace the values

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
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

After you are done and want to test the changes, run the following in the root folder (preferred):

Expand All @@ -60,6 +60,6 @@ or:
```


This will generate the new dart files from the arb files in order to take affect, otherwise you won't notice a difference
This will generate the new dart files from the arb files in order to take effect, otherwise, you won't notice a difference

Then open a pull request so everyone can benefit from your translations!
Then open a pull request so everyone can benefit from your translations!

0 comments on commit 712e236

Please sign in to comment.