多語言文件
此為 v0.0.8 後的功能。
prefix: "[ELD] "
first: "This is the first message"
second: "This is the second message"
third: "This is the third message"prefix: "[ELD] "
first: "這是第一則信息"
second: "這是第二則訊息"
third: "這是第三則信息"@GroupResource(
folder = "Langs", // 語言文件的文件夾
preloads = {"en-us", "zh-tw"} // 複製這兩個文件從 jar 內到 插件資料夾
)
@DefaultLanguage("en-us") // 定義默認語言
@Prefix(path = "prefix") // 定義prefix路徑
public class TesterMultiLang extends GroupLangConfiguration {
}
使用
使用為 i18n
最后更新于