Skip to content

Commit d077b74

Browse files
mcollovatirusselljtdyermshabarov
authored
fix: add note on DefaultI18NProvider available since 24.3 (#3112)
* fix: add note on DefaultI18NProvider available since 24.3 * First pass at editing. * More edits --------- Co-authored-by: Russell J.T. Dyer <6652767+russelljtdyer@users.noreply.github.com> Co-authored-by: Mikhail Shabarov <61410877+mshabarov@users.noreply.github.com>
1 parent cead99f commit d077b74

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

articles/advanced/i18n-localization.asciidoc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,18 @@ description: Implementing localization and translation strings using I18NProvide
44
order: 20
55
---
66

7-
= [since:com.vaadin:vaadin@V24.3]#Localization#
7+
8+
= Localization
89

910
To use localization and translation strings, the application needs only to have the translation properties available on the classpath under the directory, `vaadin-i18n` with the filename prefix, `translations` (e.g., `src/main/resources/vaadin-i18n/translations.properties`).
1011

1112
When using localization in an application, calling for a translation, or when the I18NProvider is used for the first time, the folder resource, `vaadin-i18n` is checked if it contains any `translations.properties` or `translations_[langcode].properties` files. Any language codes are collected from the available property files and added as provided locales in the [classname]`DefaultI18NProvider`.
1213

1314
The file `translations.properties` is a default translation file that'll be used for any [classname]`Locale` that doesn't have a specific translations file. Locale translation files are named, for example, like [filename]`translations_fi_FI.properties` or [filename]`translations_de.properties`. The automatic [classname]`Locale` creation supports from one to three parts (e.g., `translations_language_country_variant.properties`).
1415

16+
[NOTE]
17+
[classname]`DefaultI18NProvider` is available as of version 24.3 of Vaadin Flow. For an earlier version, you'll need to implement your own [interfacename]`I18NProvider`, as documented in <<#defining-i18n-provider-property,Defining I18n Provider Property>> section.
18+
1519

1620
== Locale Selection for New Session
1721

0 commit comments

Comments
 (0)