DefaultPermissionLocalization
open class DefaultPermissionLocalization(localizationService: LocalizationService, bundleName: String = "Permissions") : PermissionLocalization(source)
Default implementation for PermissionLocalization.
The translations are queried from bundleName, and the keys used are the enum name of the permission.
The returned translations will try to use the nearest available locale, with the last fallback being Permission.getName.
Light customization / Supporting more locales
To support more locales, (here we supposed the bundleName is Permissions
) you may create a new Permissions.json
following by appending an underscore and the language tag, such as Permissions_fr.json
.
The localization paths must be equal to Permission.getName.
Refer to Localization for mode customization details.