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

Better String Resource / Translation support #26

Open
fennifith opened this issue May 7, 2018 · 0 comments
Open

Better String Resource / Translation support #26

fennifith opened this issue May 7, 2018 · 0 comments
Labels
enhancement New feature or request

Comments

@fennifith
Copy link
Owner

Currently, unless otherwise specified, all data specified in an app's config file is replaced with the versions of that data fetched from github unless otherwise specified. However, the github versions of that data cannot be translated (as I'm pretty sure the github api only provides information in one language at a time, and most people do not write their bios in more than one language). Ideally, there would be a way to only fetch data from github for one language, and use the translated strings for the rest. This would require some extremely weird syntax in the config file though. Maybe something like bio="^(lang != en)@strings/someone_bio" to specify that the string should only be overwritten if the current locale is set to en. The lang != part isn't necessarily needed, but it improves readability and I might need to use the same or similar syntax elsewhere in this project later on.

@fennifith fennifith added the enhancement New feature or request label May 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant