Configuration properties
The following properties can be used in the application.properties or application.yml to configure the corresponding NILS-Adapter.
| Property | Explanation | Adapter |
|---|---|---|
|
Value of the base file name. |
|
|
Value to resolve the class prefix in a translation file. |
All |
|
Value used as default date format style. |
All |
|
Value of the escape pattern of missing translations. |
All |
|
Enable fallback to other translation resources. |
All |
|
Tag to include values from other translation keys. |
All |
|
Enable suppressing of errors. |
All |
|
Value to resolve the |
All |
|
Value for the cache timeout. |
JDBC |
|
Value of the database driver class. |
JDBC |
|
Value of the key field in the database table. |
JDBC |
|
Value of the locale field in the database table. |
JDBC |
|
Value of the database URL. |
JDBC |
|
Value of the database user. |
JDBC |
|
Value of the database password. |
JDBC |
|
Value of the root locale. |
JDBC |
|
Value of the database schema name. |
JDBC |
|
Value of the database table name. |
JDBC |
|
Value of the value field in the database table. |
JDBC |
See NILS documentation for more information about these configuration values.
nils.class-prefix-resolver
The value of the property nils.class-prefix-resolver can have one of the following values:
| Value | Explanation |
|---|---|
|
Resolve the full qualified name from a class as prefix for the translation key. |
|
Use the class name from a class as prefix for the translation key. |
A full qualified class name |
Create an instance of the given class name implementing the |
For more information about the ClassPrefixResolver see here.
nils.date-format-style
The value of the property nils.date-format-style can have one of the values from the enum java.time.format.FormatStyle.
For more information about the date format style see here.
nils.translation-formatter
The value of the property nils.translation-formatter can have one of the following values:
| Value | Explanation |
|---|---|
|
Use |
|
Use `String.format(…)ยด to replace arguments in a translation message. |
A full qualified class name |
Create an instance of the given class name implementing the |
For more information about the TranslationFormatter see here.