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

Check not used messages? #416

Open
addlistener opened this issue Jul 16, 2024 · 1 comment
Open

Check not used messages? #416

addlistener opened this issue Jul 16, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@addlistener
Copy link

Is your feature request related to a problem? Please describe.
In the progress of dev, there will be a lot of locale messages not being used anymore.

Describe the solution you'd like
Maybe some mechanism to check unused messages?

@addlistener addlistener added the enhancement New feature or request label Jul 16, 2024
@addlistener addlistener changed the title Check not used locales? Check not used messages? Jul 16, 2024
@ruymon
Copy link

ruymon commented Oct 14, 2024

Hey, @addlistener! This would be an awesome feature!

Additionally, it would be incredibly useful to have a VSCode extension that allows developers to create new translation keys directly within the code. For instance, if a developer types a key that doesn't exist, the extension could suggest creating it automatically across the necessary translation files, saving time and reducing errors.

Example:

return (
  <h1>{t('tempKey')}</h1> 
  // VSCode extension suggests: "Create tempKey in translation files."
) 

This would allow for a quick workflow where upon hitting a shortcut, the missing key is auto-generated and inserted into all applicable translation files.

For example:

// en.json
{
  // ... other keys
  "tempKey": "Auto-generated"
}

// fr.json
{
  // ... other keys
  "tempKey": "Auto-generated"
}

This feature could streamline the localization process, especially for large-scale applications with multiple locales.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants