Skip to content

Docker, DEV failed with language es_ES #8414

@zehnBE

Description

@zehnBE

If you need support for Nightscout, PLEASE DO NOT FILE A TICKET HERE
For support, please post a question to the "CGM in The Cloud" group in Facebook
(https://www.facebook.com/groups/cgminthecloud) or visit the WeAreNotWaiting Discord at https://discord.gg/zg7CvCQ

Describe the bug
In the DEV Branch, nightscout does not start if the Language is Spanish (es_ES)

To Reproduce
Steps to reproduce the behavior:

  1. Choose DEV Branch
  2. Set language=es in config
  3. start docker container
  4. See error

Expected behavior
Node.js v22.16.0
API_SECRET has 71 bits of entropy

<anonymous_script>:707
"virtAsstLaunch":"¿Qué quieres saber de Nightscout?"
^

SyntaxError: Expected ',' or '}' after property value in JSON at position 45950 (line 707 column 5)
at JSON.parse ()
at Function.loadLocalization (/opt/app/lib/language.js:153:33)
at Object. (/opt/app/lib/server/server.js:33:10)
at Module._compile (node:internal/modules/cjs/loader:1730:14)
at Object..js (node:internal/modules/cjs/loader:1895:10)
at Module.load (node:internal/modules/cjs/loader:1465:32)
at Function._load (node:internal/modules/cjs/loader:1282:12)
at TracingChannel.traceSync (node:diagnostics_channel:322:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:235:24)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:171:5)

Screenshots
If applicable, add screenshots to help explain your problem.

Your setup information

  • Nightscout DEV
  • "LANGUAGE=es",
  • "NODE_VERSION=16.16.0",
  • "version": "15.0.4",

Additional context
Looks for unescapted/wrong charset for es_ES on
"virtAsstLaunch":"¿Qué quieres saber de Nightscout?"

The Master Version works fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions