Skip to content

chore(i18n): add eloqnt lint to catch translation errors - #3655

Open
amannn wants to merge 2 commits into
teableio:developfrom
amannn:add-eloqnt-lint
Open

amannn wants to merge 2 commits into
teableio:developfrom
amannn:add-eloqnt-lint

Conversation

@amannn

@amannn amannn commented Sep 24, 2026

Copy link
Copy Markdown

Hey! I maintain eloqnt/cli, a linter for translation files, and have been running it against public repos to see whether their catalogs carry errors.

For teable, it found 85 errors:

For example, the German lockout message translated the argument name itself:

"tooManyRequests": "Ihr Konto wurde gesperrt, bitte versuchen Sie es nach {{Minuten}} Minuten erneut",

Original:

"tooManyRequests": "Your account has been locked out, please try again after {{minutes}} minutes",

Due to this, i18next fails to format such strings.

This PR adds a lint:i18n script to @teable/common-i18n, runs it in the linting workflow, and fixes the errors. Where a translation had drifted from the current English beyond a placeholder repair, I regenerated it with eloqnt translate. The linter itself runs locally, with no account or hosted service.

Up to you if you're interested in adopting eloqnt/cli, but you might want the translation fixes in this PR to fix runtime errors and more.

@CLAassistant

CLAassistant commented Sep 24, 2026 •

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants