Files
SlashNephy 3bd08f4fd5 feat: make check-in language configurable via HOYOLAB_LANG variable
The check-in request hardcoded `lang=en-us`, so the reward messages HoYoLAB
shows in game and in the check-in history were always English. Read the locale
from an optional `HOYOLAB_LANG` repository variable instead, defaulting to
`en-us`.

The name is prefixed rather than a plain `LANGUAGE` to avoid colliding with the
GNU gettext variable of that name when running index.js locally.

`||` is used rather than `??` because an unset repository variable is injected
as an empty string by Actions, which `??` would pass through as an empty `lang`.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-12 09:40:19 +09:00
..