Languages
The web interface is available in English and French. Each request is answered in:
- the language chosen in the account menu of the page header, remembered in the
nanobom_localecookie of that browser (it holds only the chosen language); - otherwise, the best match among the browser’s preferred languages (
Accept-Language); - otherwise, English.
The choice is per browser, not per account: signing in elsewhere starts from the browser’s preferences again. The choice works without JavaScript, like the rest of the interface.
Error messages of the interface are translated too. Some texts stay in English whatever the language:
- the upload API’s messages, since they end up in CI logs read by whoever maintains the pipeline;
- webhook payloads and logs, which are meant for programs, and the Slack and Microsoft Teams messages, since the language of a channel’s readers is unknown (emails are in the language chosen in the organization’s email settings);
- vulnerability descriptions, which come from OSV as published;
- the label of the single sign-on button, which is set by
NANOBOM_OIDC_BUTTON_LABEL.
Dates are shown in UTC.
Translations live in crates/app/locales/ (interface) and crates/domain/locales/ (messages of
the domain, such as validation errors), one JSON file per language. A message missing from a
language fails the build, so a release never shows a half-translated page. Adding a language is
described in Develop and contribute.