Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatic stubs for missing translations #114

Open
kakserpom opened this issue Jun 15, 2024 · 1 comment
Open

Automatic stubs for missing translations #114

kakserpom opened this issue Jun 15, 2024 · 1 comment
Labels
help wanted Extra attention is needed new feature Issues or pull requests that introduce new features

Comments

@kakserpom
Copy link

error: Translations check failed:
       - Message "Some message" defined at `tr!("Some message")` macro call in ....rs not found in files for locale "en".
       - Message "Some message" defined at `tr!("Some message")` macro call in ...rs not found in files for locale "vi".

Why not insert stubs into .ftl files automatically?

Like this:

Some message = Some message into en/main.ftl

Some message = @TODO into vi/main.tfl

It could be done in a callback or something.

@mondeja
Copy link
Owner

mondeja commented Jun 15, 2024

Looks like a good idea. But note that Some message is not a valid fluent message identifier.

@mondeja mondeja added help wanted Extra attention is needed new feature Issues or pull requests that introduce new features labels Jun 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed new feature Issues or pull requests that introduce new features
Projects
None yet
Development

No branches or pull requests

2 participants