Where to place i18n key strings in Java

前端 未结 8 2824
不思量自难忘°
不思量自难忘° 2021-02-20 04:10

When doing internationalization in Java, you assign a string key to each message. What\'s the best practice, on where to place those string keys. Goal is to allow easy refactori

8条回答
  •  暖寄归人
    2021-02-20 04:41

    IMHO The best place to define these keys, and their related strings, are NLS files.n And you must saved them at ResourceBundle files

提交回复
热议问题