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

how can I use the other language #6

Closed
520xiaopohai opened this issue Mar 12, 2020 · 2 comments
Closed

how can I use the other language #6

520xiaopohai opened this issue Mar 12, 2020 · 2 comments

Comments

@520xiaopohai
Copy link

The default is English ,How can I use the language such as Japanese,Spanish, French

@dalemyers
Copy link
Collaborator

dalemyers commented Mar 12, 2020

Unfortunately at that point, this isn't supported. It would be relatively easy to add support though if you'd like to open a PR?

First up you'd have to open one against dotstrings and modify this to allow the base language to be passed in: https://github.com/microsoft/dotstrings/blob/f642fee5e14dcba633a49e97faca40c65b29df96/dotstrings/genstrings.py#L65 Then you can modify this method

def generate_dot_strings_files(*, code_files: List[str], localized_string_kit_path: str) -> None:
to pass in a value from the command line down to generate_strings as the base language.

It's likely we'd add support ourselves at some point, but it's not high on our agenda.

@520xiaopohai
Copy link
Author

thank you

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

2 participants