internationalization.md: Add a tip to ensure that bundle files are encoded in UTF-8

This commit is contained in:
Karol Lewandowski 2024-12-04 15:38:51 +01:00
parent 4e94d6d11f
commit 0917c3b268

View File

@ -148,6 +148,8 @@ Annotating message key parameter with [`@PropertyKey`](%gh-java-annotations%/com
### Moving Strings to Message Bundles
> Make sure the encoding for bundle files is set to UTF-8 in <ui-path>Settings | Editor | File Encodings | Properties Files (*.properties)</ui-path>.
IntelliJ IDEA provides inspections with fixes which help with moving strings to message bundles, e.g. <ui-path>Editor | Inspections | Java | Internationalization | Hardcoded strings</ui-path> for Java and Kotlin code.
It is possible to move multiple hardcoded strings to a message bundle in batch mode.