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

Add arguments to translate method #5

Merged
merged 2 commits into from May 12, 2020

Conversation

mo-ah-dawood
Copy link
Contributor

@mo-ah-dawood mo-ah-dawood commented May 12, 2020

whats changed
translate method can now accept arguments to be replaced with passed values
translator.translate("word",{"{a1}":"value1","{a2}","value2"})
examples

///we well use translator.translate("word",{"{a1}":"banana","{a2}":"orange"})
"word":"This is {a1} and {a2}" => This is banana and orange
"word":"This is {a1} and {a2}, {a1} is good" => This is banana and orange, banana is good

note as this is a package not a plugin i removed android and ios code to avoid version conflicts

@msayed-net
Copy link
Owner

@all-contributors please add @mo-ah-dawood for code

@allcontributors
Copy link
Contributor

@msayed-net

I've put up a pull request to add @mo-ah-dawood! 🎉

@msayed-net msayed-net merged commit 1cdd24f into msayed-net:master May 12, 2020
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.

None yet

2 participants