Class ChartI18N
java.lang.Object
com.arbergashi.charts.util.ChartI18N
Internationalization (public API) facade.
Note: the underlying bundle/fallback logic is implemented in ChartAssets.
This class exists to provide a convenient developer experience.
- Since:
- 2026-01-01
- Version:
- 1.0.0
- Author:
- Arber Gashi
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidCache flush helper.static Stringstatic Stringstatic LocaleReturns the framework default locale override, or null when not set.static StringgetIconPath(String rendererKey) Specialized helper for SVG icon keys.static StringReturns the localized string for the current default locale.static Stringstatic voidsetDefaultLocale(Locale locale) Sets a framework-wide default locale for i18n resolution.
-
Method Details
-
getString
-
getString
-
getIconPath
-
format
-
format
-
flushCache
public static void flushCache()Cache flush helper. Delegates to ChartAssets for consistent reload/theme-switch behavior. -
setDefaultLocale
Sets a framework-wide default locale for i18n resolution.When set, this locale is used by
getString(String)andformat(String, Object...)unless a locale is provided explicitly.- Parameters:
locale- default locale to use (null resets to JVM default)
-
getDefaultLocale
Returns the framework default locale override, or null when not set.- Returns:
- the explicit default locale or null
-