We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In some scenarios accessing translation by namespaced key overcomplicates things, just vector with path can work.
Consider this scenario: You want to show a document title per type.
title
i18n.clj
... :documents {:type1 {:title "type1" :filename "f1"} :type2 {:title "type2" :filename "f2"} :type1 {:title "type3" :filename "f3"}
(for [t [:type1 :type2 :type3] (translate :en (keyword (str "documents." (name t)) "filename" )))
This adds keyword manipulation.
Compare with
(for [t [:type1 :type2 :type3] (translate :en [:documents t :filename])))
This feels way simpler and cleaner.
What do you think?
The text was updated successfully, but these errors were encountered:
Yes, looks good. Want to make a PR?
Sorry, something went wrong.
Will try to make one, may take a while tho.
No branches or pull requests
In some scenarios accessing translation by namespaced key overcomplicates things, just vector with path can work.
Consider this scenario:
You want to show a document
title
per type.i18n.clj
This adds keyword manipulation.
Compare with
This feels way simpler and cleaner.
What do you think?
The text was updated successfully, but these errors were encountered: