return value based on the given Locale
the Locale to be use. If null the current setting in i18n4k (I18n4kConfig.locale) will be used.