Closed giorgio-v closed 9 years ago
Hi there,
Could you try again without the :ja "test_ja.clj" ; Import locale's map from external resource
line?
Nope. :(
Il giorno 11/ago/2015, alle ore 14:56, Peter Taoussanis notifications@github.com ha scritto:
Hi there,
Could you try again without the :ja "test_ja.clj" ; Import locale's map from external resource line?
— Reply to this email directly or view it on GitHub.
Could you try again with the following in your .clj?:
{:en {:example {:foo ":en :example/foo text"
:foo_comment "Hello translator, please do x"
:bar {:baz ":en :example.bar/baz text"}
:greeting "Hello %s, how are you?"
:inline-markdown "<tag>**strong**</tag>"
:block-markdown* "<tag>**strong**</tag>"
:with-exclaim! "<tag>**strong**</tag>"
:with-arguments "Num %d = %s"
:greeting-alias :example/greeting
:baz-alias :example.bar/baz}
:missing "|Missing translation: [%1$s %2$s %3$s]|"}
:en-US {:example {:foo ":en-US :example/foo text"}}
:de {:example {:foo ":de :example/foo text"}}
}
Your .clj resource is supposed to contain the :dictionary value, not the entire config map. Also make sure you exclude the :ja "test_ja.clj"
entry again.
Did that help?
Yep! I am network challenged at the moment with my laptop, so I had to retype the conf by hand, but it works.
Giorgio Valoti
Il giorno 11/ago/2015, alle ore 17:59, Peter Taoussanis notifications@github.com ha scritto:
Could you try again with the following in your .clj?:
{:en {:example {:foo ":en :example/foo text" :foo_comment "Hello translator, please do x" :bar {:baz ":en :example.bar/baz text"} :greeting "Hello %s, how are you?" :inline-markdown "
strong " :block-markdown* "strong " :with-exclaim! "strong " :with-arguments "Num %d = %s" :greeting-alias :example/greeting :baz-alias :example.bar/baz} :missing "|Missing translation: [%1$s %2$s %3$s]|"} :en-US {:example {:foo ":en-US :example/foo text"}} :de {:example {:foo ":de :example/foo text"}} } Your .clj resource is supposed to contain the :dictionary value, not the entire config map. Also make sure you exclude the :ja "test_ja.clj" entry again.Did that help?
— Reply to this email directly or view it on GitHub.
Peter, thanks a lot!
No problem, good luck! :+1:
I see the stack trace at the bottom of this issue when I try to compile the translations dictionary in ClojureScript.
Sorry for the hyper-long outputs, but I hope they can give some clues.
Environment, setup, etc
I have created a
dict.clj
underresources
with this content (yes, copy&paste just to get started):The relevant parts in the .cljs:
Here is the dependencies tree from boot:
Stack trace