Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
989ac08f
Commit
989ac08f
authored
Feb 08, 2019
by
Kedar Joshi
Committed by
Stephane Nicoll
Feb 12, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document internationalization support
See gh-15881
parent
ef10eed8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
0 deletions
+26
-0
spring-boot-features.adoc
...ing-boot-docs/src/main/asciidoc/spring-boot-features.adoc
+26
-0
No files found.
spring-boot-project/spring-boot-docs/src/main/asciidoc/spring-boot-features.adoc
View file @
989ac08f
...
...
@@ -8387,6 +8387,32 @@ Boot's core features will be honoured by the presence of the core starter.
[[boot-features-internationalization]]
== Internationalization
Spring Boot supports localized messages so that your application can cater to users
of different language preferences. By default, Spring Boot looks for `messages.properties`
or its language and locale specific equivalent in applications context path
e.g. `messages_en_US.properties` for US English and so on.
You can set `spring.messages.basename` property to configure custom locations for
these files. `spring.messages` namespace provides additional options to be set according
to application requirements as shown below -
[source,properties,indent=0]
----
spring.messages.basename = config.i18n.messages
spring.messages.fallback-to-system-locale = false
spring.messages.encoding = utf-8
spring.messages.cache-duration = 30m
spring.messages.always-use-message-format = false
spring.messages.use-code-as-default-message = true
----
TIP: `spring.messages.basename` supports comma-separated list of locations (essentially
a fully-qualified classpath location) for configuring multiple message sources.
[[boot-features-kotlin]]
== Kotlin support
https://kotlinlang.org[Kotlin] is a statically-typed language targeting the JVM (and other
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment