Where to place i18n key strings in Java

前端 未结 8 2775
不思量自难忘°
不思量自难忘° 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:27

    One of the good way of doing this is explained here: Short article on a new approach using NLS with some advantages over ResourceBundle approach.

提交回复
热议问题