Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.
TypeScript i18nextnext-authnextjspostgresqlprismareact-emailt3-stacktailwindcsstrpcturborepotypescriptzod
π Tell CodeRabbit that generated English locale diffs are expected (#3300)
Luke Vella17b2cf11404e
diff --git a/.coderabbit.yaml b/.coderabbit.yamlnew file mode 100644index 000000000..91fdbe642--- /dev/null+++ b/.coderabbit.yaml@@ -0,0 +1,36 @@+# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json+reviews:+ path_instructions:+ - path: "apps/web/public/locales/en/**"+ instructions: >+ These files are generated by `pnpm i18n:scan` from `Trans` and `t()`+ calls in source. A new or changed English entry is the expected+ companion to a source change and is not a manual translation edit.+ Only flag a key that is not camelCase, that has no matching usage in+ the diff or the codebase, or a value with unbalanced ICU braces.+ - path: "apps/landing/public/locales/en/**"+ instructions: >+ These files are generated by `pnpm i18n:scan` from `Trans` and `t()`+ calls in source. A new or changed English entry is the expected+ companion to a source change and is not a manual translation edit.+ Only flag a key that is not camelCase, that has no matching usage in+ the diff or the codebase, or a value with unbalanced ICU braces.+ - path: "packages/emails/locales/en/**"+ instructions: >+ These files are generated by `pnpm i18n:scan` from `Trans` and `t()`+ calls in source. A new or changed English entry is the expected+ companion to a source change and is not a manual translation edit.+ Only flag a key that is not camelCase, that has no matching usage in+ the diff or the codebase, or a value with unbalanced ICU braces.+ - path: "apps/web/public/locales/!(en)/**"+ instructions: >+ Non-English locale files are owned by Crowdin. Flag any change to them+ that is not part of a "New Crowdin updates" pull request.+ - path: "apps/landing/public/locales/!(en)/**"+ instructions: >+ Non-English locale files are owned by Crowdin. Flag any change to them+ that is not part of a "New Crowdin updates" pull request.+ - path: "packages/emails/locales/!(en)/**"+ instructions: >+ Non-English locale files are owned by Crowdin. Flag any change to them+ that is not part of a "New Crowdin updates" pull request.diff --git a/CLAUDE.md b/CLAUDE.mdindex ce0dd5171..e2516a4e2 100644--- a/CLAUDE.md+++ b/CLAUDE.md@@ -277,7 +277,8 @@ Reads filtered or grouped by the viewer's present ("upcoming", "past", agenda gr- Crowdin integration for translation management- Use `pnpm i18n:scan` to extract new translation keys- **IMPORTANT**: When TypeScript errors occur for missing i18n keys, run `pnpm i18n:scan` instead of manually adding keys. This command automatically scans the codebase for `Trans` components and generates the necessary translation entries.-- **IMPORTANT**: Never manually add translations to `.json` files. This is handled by tooling.+- **English locale files are generated, and their diffs are expected in feature PRs.** `pnpm i18n:scan` writes new keys into `apps/web/public/locales/en/*.json`, `apps/landing/public/locales/en/*.json` and `packages/emails/locales/en/*.json`; a PR that adds a `Trans` or `t()` call ships the matching English entry. Never hand-type an entry into those files β run the scan so the key and default cannot drift from the source.+- **Non-English locale files belong to Crowdin.** Never edit them in a feature PR; translations arrive through the "π New Crowdin updates" PRs.- **Pluralization**: Always use ICU message format for plurals. Example: `{count, plural, =0 {No items} one {1 item} other {# items}}` instead of separate singular/plural translation keys.- i18n keys are in camelCase and should describe the message (e.g. `"lastUpdated": "Last updated"`)- If an i18n key is not intended to be reused, prefix it with the component name in camelCase