# Message catalogs for Java and FXML Create one Localizer per application. The initial locale can be null to use the JVM display locale. The second argument specifies the fallback language. Register the service with the same ApplicationContext used by ViewLoader. ```java var language = new Localizer(initialLocale, Locale.ENGLISH, new Localizer.Catalog(MyApp.class, "MyApp", "org.example.myapp"), LanguageMenu.CATALOG); context.addSingleton(Localizer.class, language); var texts = language.forClass(AccountController.class); label.setText(texts.text("account.saved", accountName)); ``` Catalogs are UTF-8 properties files. For each key the search tries the requested locale's variants (for example de-CH before de), then variants of the fallback locale, then files without a language suffix. Each pass visits the view catalog beside its FXML, the controller's class catalog, package Messages catalogs up to the configured root, the named application catalog and the named library catalogs in registration order. For example, use Account_de.properties beside Account.fxml and MyApp_de.properties at the application resource root. Missing keys display as ⟦key⟧ and log once per locale and catalog context. Java calls with arguments use MessageFormat patterns. ViewLoader supplies the same Messages bundle to the FXMLLoader and the controller. Use `