How to implement language support for JavaFX in FXML documents?
问题 How can I have different languages for a view in a FXML document to support many countries? 回答1: Use ResourceBundles to store the locale-dependent text, and access the data in the bundle using "%resourceKey" . Specifically, create text files for each language you want to support and place them in the classpath. The Javadocs for ResourceBundle have the details on the naming scheme, but you should have a default bundle defined by BaseName.properties and bundles for other languages and variants