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

Create advancedTranslate util #1591

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

marcustyphoon
Copy link
Collaborator

Description

Creates a utility function that, rather than returning only a single translated value for each root string as Tumblr's built-in helper does, returns all translated values associated with the root string including plurals and contexts with the same string. The utility falls back to tumblr.languageData if this extraction method breaks.

Testing steps

@marcustyphoon
Copy link
Collaborator Author

See also: #1461

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

Successfully merging this pull request may close these issues.

1 participant