YAML8n works really well in a Continuous Integration/Continuous Delivery (CI/CD) pipeline.
Check Generated Code
It’s recommended to run
yaml8n generate follow by a
git diff to check if the output code changes. This should fail builds, as they aren’t using the latest translations.
yaml8n generate translations.yaml git diff --exit-code outputs/yaml8n.ts
Additionally, you can pass the argument
-w to fail on warnings like missing translations.
yaml8n validate translations.yaml