KetraTerm
API · DevelopmentAll versions

forLocale

fun forLocale(locale: Locale = Locale.getDefault(Locale.Category.DISPLAY), bundle: ResourceBundle = ResourceBundle.getBundle( "io.github.ketraterm.ui.swing.suggestion.SwingCompletionMessages", locale, ResourceBundle.Control.getNoFallbackControl(ResourceBundle.Control.FORMAT_PROPERTIES), )): SwingTerminalMessages

Creates a UTF-8 resource-bundle lookup with English fallback for missing keys.

Patterns use MessageFormat only when arguments are supplied; static text is returned verbatim. The explicit locale controls formatting. The returned lookup is thread-safe for shared component owners.