You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1-13Lines changed: 1 addition & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,7 +32,6 @@ Also included is the `l10n` / `i18n` of error text messages to multiple language
32
32
-[Roadmap](#roadmap)
33
33
-[Ecosystem](#ecosystem)
34
34
-[Thanks to](#thanks-to)
35
-
-[Contributors](#contributors)
36
35
37
36
## Features
38
37
@@ -202,27 +201,22 @@ See [contribution file](https://github.com/flutter-form-builder-ecosystem/.githu
202
201
We especially welcome efforts to internationalize/localize the package by translating the default validation `errorText` strings for built-in validation rules.
203
202
204
203
1. Add ARB files
205
-
206
204
Create one ARB file inside the `lib/l10n` folder for each of the locales you need to add support. Name the files in the following way: `intl_<LOCALE_ISO_CODE>.arb`. For example: `intl_fr.arb` or `intl_fr_FR.arb`.
207
205
208
206
2. Translate the error messages
209
-
210
207
Copy and paste the contents of `intl_en.arb` into your newly created ARB file. Then translate the error messages by overwriting the default messages.
211
208
212
209
3. Generate localization code
213
-
214
210
To generate boilerplate code for localization, run the generate command inside the package directory where `pubspec.yaml` file is located:
215
211
216
212
`flutter gen-l10n`
217
213
218
214
Running the command will automatically create/update files inside the `lib/localization` directory, including your newly added locale support.
219
215
220
216
4. Update README
221
-
222
217
Remember to update README, adding the new language (and language code) under [Supported languages section](#supported-languages) in alphabetic order, so that everyone knows your new language is now supported!
223
218
224
219
5. Submit PR
225
-
226
220
Submit your PR and be of help to millions of developers all over the world!
227
221
228
222
#### Add new validator
@@ -256,10 +250,4 @@ Take a look to [our awesome ecosystem](https://github.com/flutter-form-builder-e
0 commit comments