Skip to content

Commit

Permalink
Document locale limitations in native mode #2522
Browse files Browse the repository at this point in the history
  • Loading branch information
ppalaga committed May 17, 2021
1 parent 7edf3e0 commit 2e473ce
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions docs/modules/ROOT/pages/user-guide/native-mode.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,22 @@ quarkus.native.add-all-charsets = true
See also https://quarkus.io/guides/all-config#quarkus-core_quarkus.native.add-all-charsets[quarkus.native.add-all-charsets]
in Quarkus documentation.

[[locale]]
== Locale

Before GraalVM 21.1 there was no way to include more than the single locale (the one set as a defult in the building JVM) in the native image.
Quarkus offered a way to set that locale via `application.properties`, so that you did not need to rely on `LANG` and `LC_*` environement variables:

[source,properties]
----
quarkus.native.user-country=US
quarkus.native.user-language=en
----

Since https://medium.com/graalvm/graalvm-21-1-96e18f6806bf#7ce8[GraalVM 21.1], there is a support for embedding multiple locales into the native image
and for selecting the default locale via GraalVM command line options `-H:IncludeLocales=fr,en`, `H:+IncludeAllLocales` and `-H:DefaultLocale=de`.
You can set those via Quarkus `quarkus.native.additional-build-args` property.

[[embedding-resource-in-native-executable]]
== Embedding resources in the native executable

Expand Down

0 comments on commit 2e473ce

Please sign in to comment.