Local development
git clone https://github.com/IEvangelist/resource-translatorcd resource-translatornpm installnpm run verify # lint + format:check + test + buildAdding a parser
- Add a fixture under
__tests__/data/. - Implement
TranslationFileParser(parse,format,applyTranslations,toTranslatableTextMap). - Register it in
translation-file-parser-factory.ts. - Add the file extension to
translationFileSchemesintranslation-file-finder.ts. - Write round-trip tests for parse → format and applyTranslations.
Coverage thresholds
The Jest config enforces minimum coverage. New code must keep the statements + lines threshold above 78% and functions above 90%. Add fixtures and tests alongside your change.
Documentation site
The docs/ folder is an Astro 6 + Tailwind v4 project. Run npm install there once, then npm run dev for local preview. The pages.yml workflow ships docs to GitHub Pages on every merge.