Describe the bug
Environment Variable:
LANGUAGE=zh_tw
cgm Version:
v15.0.2
Error:
Aug 10 08:05:40 ****: node:internal/fs/utils:347
Aug 10 08:05:40 ****: throw err;
Aug 10 08:05:40 ****: ^
Aug 10 08:05:40 ****: Error: ENOENT: no such file or directory, open './translations/undefined.json'
Aug 10 08:05:40 ****: at Object.openSync (node:fs:590:3)
Aug 10 08:05:40 ****: at Object.readFileSync (node:fs:458:35)
Aug 10 08:05:40 ****: at Function.loadLocalization (/****/15.0.2/cgm-remote-monitor/lib/language.js:150:18)
Aug 10 08:05:40 ****: at Object.<anonymous> (/var/www/html/api/crm_versions/15.0.2/cgm-remote-monitor/lib/server/server.js:33:10)
Aug 10 08:05:40 ****: at Module._compile (node:internal/modules/cjs/loader:1198:14)
Aug 10 08:05:40 ****: at Object.Module._extensions..js (node:internal/modules/cjs/loader:1252:10)
Aug 10 08:05:40 ****: at Module.load (node:internal/modules/cjs/loader:1076:32)
Aug 10 08:05:40 ****: at Function.Module._load (node:internal/modules/cjs/loader:911:12)
Aug 10 08:05:40 ****: at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
Aug 10 08:05:40 ****: at node:internal/main/run_main_module:22:47 {
Aug 10 08:05:40 ****: errno: -2,
Aug 10 08:05:40 ****: syscall: 'open',
Aug 10 08:05:40 ****: code: 'ENOENT',
Aug 10 08:05:40 ****: path: './translations/undefined.json'
Aug 10 08:05:40 ****: }
To Reproduce
Steps to reproduce the behavior:
- Run the CGM monitor app using
zh_tw as your preferred language. I.e, LANGUAGE=zh_tw
- See error in the app logs.
Expected behavior
The app should run smoothly as expected.
Screenshots
N/A
Your setup information
- What version of Nightscout (e.g. 15.0.2)
- What type of CGM, and how do you get your data there? N/A
- Is your issue specific to a browser (Firefox/Safari/Chrome?) or a device (Android phone, etc.)? N/A
Additional context
The Nightscout documentation https://nightscout.github.io/nightscout/setup_variables/#language-en clearly states that it supports zh_tw (中文(繁體). However, in the source code, it appears to be commented out for some unknown reason
|
// , { code: 'zh_tw', file: 'zh_TW', language: '中文(繁體)', speechCode: 'cmn-Hant-TW' } |
even though the language translation file
./translations/zh_TW.json actually exists. In my humble opinion, if this isn't ready yet, then it makes more sense to update the Nightscout documentation to reflect the current status.
Describe the bug
Environment Variable:
LANGUAGE=zh_twcgm Version:
v15.0.2Error:
To Reproduce
Steps to reproduce the behavior:
zh_twas your preferred language. I.e,LANGUAGE=zh_twExpected behavior
The app should run smoothly as expected.
Screenshots
N/A
Your setup information
Additional context
The Nightscout documentation https://nightscout.github.io/nightscout/setup_variables/#language-en clearly states that it supports
zh_tw (中文(繁體). However, in the source code, it appears to be commented out for some unknown reasoncgm-remote-monitor/lib/language.js
Line 44 in 91cd601
./translations/zh_TW.jsonactually exists. In my humble opinion, if this isn't ready yet, then it makes more sense to update the Nightscout documentation to reflect the current status.