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

Update translation system to make the string changes easier #439

Open
frozenhelium opened this issue Jan 9, 2024 · 0 comments
Open

Update translation system to make the string changes easier #439

frozenhelium opened this issue Jan 9, 2024 · 0 comments
Assignees
Labels
discussion This issue or pull request is open for general discussion type: feature-request New feature or request

Comments

@frozenhelium
Copy link
Member

frozenhelium commented Jan 9, 2024

  • GO codebase is composed of react components
    • React components can be either a View or reusable Component
  • Each react component should record list of string in an i18n file within the component.
    • A namespace should also be defined along with the strings
    • A namespace should always match the name of View
    • A namespace should generally match the name of Component, in some special case we can use common namespace
  • Developer should be able to add, modify and remove strings
  • Developer should be able to rename namespace (move all strings from one namespace to another)
  • Developer should be able to create a new namespace and move some strings from existing namespace (move some strings from one namespace to another)
  • Server should be able to store list of strings for a version of client (called String snapshot)
  • Developer should be able to generate a text file with list of commands that will capture changes needed to be applied to the snapshot (called Command file)
  • Developer should be able to review and manually change the Command file
  • Deployment CI should be able to fetch the String snapshot for a specific version from the server
  • Deployment CI should be able to read the Command file
  • Deployment CI should be able to apply the list of commands from the Command file to create a new String snapshot
  • Deployment CI should be able to send newly create String snapshot to the server
@frozenhelium frozenhelium added type: feature-request New feature or request discussion This issue or pull request is open for general discussion labels Jan 9, 2024
@frozenhelium frozenhelium self-assigned this Jan 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion This issue or pull request is open for general discussion type: feature-request New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant