Open a properties file that is a part of a bundle and click the Resource Bundle tab at the bottom of the editor:Īdd, change, or delete keys as required. Select a resource bundle in the Project tool window, and press F4. IntelliJ IDEA includes a Resource Bundle editor for convenient editing of localizable strings in properties files. Once you create several properties files with the same name and different locale suffixes, IntelliJ IDEA automatically recognizes them and groups them in the Project view into a resource bundle. Specify the base name of the resource bundle. Select the properties files to be combined.įrom the context menu, click Combine to Resource Bundle. Right-click the resource bundle you want to dissociate.įrom the context menu, click Dissociate Resource Bundle.Ĭombine several properties files into a resource bundle You can dissociate it to show only the properties files without the bundle. To add locales, click and type the comma-separated suffixes of the required locales.Ī new node Resource Bundle '' appears in the Project tool window:īy default, the bundle contains properties files for all specified locales. If necessary, select the Use XML-based properties files. In the dialog that opens, specify the base name of the resource bundle. In the Project tool window, select the directory where the new resource bundle should be created.įrom the main menu, select File | New | Resource Bundle, or press Alt+Insert and click Resource Bundle. IntelliJ IDEA marks resource bundles with the following icon. For example, if you create file_en.properties and file_de.properties, IntelliJ IDEA will recognize and combine them into a resource bundle. A resource bundle is a set of properties files with the same base name and a language-specific suffix.
0 Comments
Leave a Reply. |