<!-- SPDX-FileCopyrightText: © opening_hours.js contributors -->
<!-- SPDX-License-Identifier: LGPL-3.0-only -->
# Locales

This directory contains localization files.

For detailed translation guidelines, see the [CONTRIBUTING](/CONTRIBUTING.md#translating-error-messages-and-warnings) documentation.

## Files

- `i18n.js`: Translation lookup implementation
- `translations.yaml`: All locale translations (error messages, warnings, pretty-print tokens)
- `word_error_correction_manual.yaml`: Manual word error corrections requiring manual curation
  - This file is used to add manual corrections for specific languages that cannot be automatically generated or require human oversight.
- `word_error_correction.yaml`: Generated combined word error corrections (automatic + manual)
  - This file is automatically generated using `scripts/gen_word_error_correction.mjs` from pinned CLDR npm packages (`cldr-dates-full` and `cldr-localenames-full`), covering hundreds of locales.
  - Don't edit this file directly.
