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

Improve Developer Experience for i18n Configuration #8736

Open
1 of 2 tasks
gigincg opened this issue Oct 8, 2024 · 4 comments
Open
1 of 2 tasks

Improve Developer Experience for i18n Configuration #8736

gigincg opened this issue Oct 8, 2024 · 4 comments
Labels

Comments

@gigincg
Copy link
Member

gigincg commented Oct 8, 2024

Objective

Enhance the developer experience when working with internationalization (i18n) in Care by consolidating locale files and implementing a VS Code extension for easier management of translations.

Tasks

  • Merge Multiple JSON Files into One File per Locale

    • Combine all separate JSON files (e.g., Bed.json, User.json, etc.) into a single file for each locale.
    • Example: Create en.json, es.json, etc., containing all translations for each language.
    • Update the i18n configuration to use these consolidated files.
  • Improve Dev Experience for i18n Management

    • Explore existing extensions or consider building a VS Code extension with the following features:
      a. Quick search for existing translations within the current locale file.
      b. Easy creation of new translation keys directly from the code editor.
      c. Automatic insertion of newly created keys into the appropriate locale file(s).

Acceptance Criteria

  • All locale-specific JSON files are consolidated into single files per language.
  • Enables quick search of existing translations.
  • Enables creation of new translation keys from codebase (JSX files).
  • Documentation is updated to reflect the new i18n workflow.

Additional Notes

  • Consider using a tool like i18next-parser to automatically extract translation keys from the codebase.
@anandaashish74711
Copy link

@gigincg i want to work on this issue .could you please assign me this task?

@gigincg
Copy link
Member Author

gigincg commented Oct 8, 2024

@anandaashish74711 We have moved to i-8n ally to solve this.

If you have a better solution, please suggest your solution here. Happy to assign the issue if a better solution is available

@i0am0arunava
Copy link

i0am0arunava commented Oct 16, 2024

@gigincg ,I saw someone is working on the point 1 of Task ,can I start to work on the point 2 (vs code extension)

@gigincg
Copy link
Member Author

gigincg commented Oct 16, 2024

@i0am0arunava Please read through all comments in an issue when you have intent to take it up.

Task 2 has been solved with i18n ally. You need to comment a better solution if you want to take it up.

Personal Note: This is issue requires a bit of research and is better suited for a seasoned dev.

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

No branches or pull requests

3 participants