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 L10nGet instance ofL10nusing contextual locale.static L10ngetInstance(Locale locale) Get instance ofL10nfor the given locale.
-
Method Details
-
getInstance
Get instance ofL10nusing contextual locale.- Returns:
L10ninstance for the context
-
getInstance
Get instance ofL10nfor the given locale.- Parameters:
locale- the locale instance- Returns:
L10ninstance 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
-