Package com.axelor.i18n
Class L10n
java.lang.Object
com.axelor.i18n.L10n
This class provider methods for localization (L10n) services.
-
Method Summary
Modifier and TypeMethodDescriptionFormat the number value.Format the number value.Format the date value.format
(LocalDateTime value) Format the date time value.Format the time value.format
(ZonedDateTime value) Format the date time value.static L10n
Get instance ofL10n
using contextual locale.static L10n
getInstance
(Locale locale) Get instance ofL10n
for the given locale.
-
Method Details
-
getInstance
Get instance ofL10n
using contextual locale.- Returns:
L10n
instance for the context
-
getInstance
Get instance ofL10n
for the given locale.- Parameters:
locale
- the locale instance- Returns:
L10n
instance for the given locale
-
format
Format the number value.- Parameters:
value
- the value to format- Returns:
- value as formated string
-
format
Format the number value.- Parameters:
value
- the value to formatgrouping
- whether to use grouping in format- Returns:
- value as formated string
-
format
Format the date value.- Parameters:
value
- the value to format- Returns:
- value as formated string
-
format
Format the time value.- Parameters:
value
- the value to format- Returns:
- value as formated string
-
format
Format the date time value.- Parameters:
value
- the value to format- Returns:
- value as formated string
-
format
Format the date time value.- Parameters:
value
- the value to format- Returns:
- value as formated string
-