開發日誌
新增
- 透過設定檔可以改變偏好語系。
設定檔位於 環境變數
$XDG_CONFIG_HOME
所指向之位置 或是~/.config
目錄下 之app-config.cson
。
修改hanayome.lang
欄位可以改變偏好的語言檔,欄位內容為語言檔檔名 (不含副檔名.lang.cson
部分)。
語言檔位於
<HanaYome路徑>/resources/assets/lang/<語系>.lang.cson
修正
- 偏好語系或系統語系未有語言檔支持造成的ENOENT問題。
若未設定偏好語系,且並未有系統語系之語言檔支持,則採用繁體中文作為默認語言。
Changelog
Added
- Configurable locale preference
Main config file,
app-config.cson
, is at the path the env variable$XDG_CONFIG_HOME
points to or at~/.config
.
Changes to the fieldhanayome.lang
will result in changing the preferred locale, the value of the field is the filename of the language file without the file extension.lang.cson
.
Language files are at
<HanaYome path>/resources/assets/lang/<locale>.lang.cson
.
Fixed
- ENOENT problem of the language file for the preferred locale or the system locale
If the preferred locale field is empty and the language file for the system locale is not found, traditional Chinese (zh_TW) is used as the default locale.