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

[feature] - migration tools #43

Closed
jhonny-me opened this issue May 14, 2022 · 2 comments
Closed

[feature] - migration tools #43

jhonny-me opened this issue May 14, 2022 · 2 comments

Comments

@jhonny-me
Copy link
Owner

create a separate command app that reverse the process:

  • read from iOS Localizable.strings files and generate an excel
  • read from Android strings.xml files and generate an excel
  • uses can upload/copypaste the excel to google sheet

This will helps existing projects to adopt Mirrorrim.

@jhonny-me
Copy link
Owner Author

implementation logic:

  1. read input directory from user input
  2. list out all files/subfolders in the input directory
  3. matching the language string files with names
  4. enumerate the matched files to generate an array of matching translations
  5. merge the arrays that generated for each string file
  6. write the merged array to an excel file

Detail logic about step 4:

data model

{
  "key": "some_key",
  "en": "en wordings",
  "zh":  "zh wordings",
  ....
}

@jhonny-me
Copy link
Owner Author

closing as done.

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

No branches or pull requests

1 participant