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

Automatically detect target language by the name of the folder or file #9

Open
icnocop opened this issue Dec 21, 2018 · 2 comments
Open

Comments

@icnocop
Copy link

icnocop commented Dec 21, 2018

I would like VsTranslator to automatically detect the target language by the name of the folder or file.

For example, if my file is called "Localization.zh-CN.resx", then the target language should automatically be Chinese (Simplified) by default.

Also, if my file is in a folder containing "CHS", then the target language should automatically be Chinese (Simplified) by default.

In this way, I don't have to change the target language when translating strings in multiple files where each file targets a different language.

I could imagine this feature as a set of rules based on Regular Expressions that the user would have to enter.

For example,
Target Language Identifier:
zh-CN
Regular Expression Matches:
zh-CN
CHS

The Regular Expression would match on the full path of the file.

Thank you.

@icnocop
Copy link
Author

icnocop commented Apr 16, 2020

Or maybe just cache the target language based on the file path, so I only have to set the target language once per file.

@Kerwin1202
Copy link
Owner

OK,I will consider this.

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