i18n
i18n copied to clipboard
Cannot Translate a String ending with fullstop(.)
Hi ,
I want to translate a string ending with full Stop, But It is unable to translate.
eg:
My Key Value Pairs [{ :"Requested part is not available in your on site FSL."=> "Parte richiesta non è disponibile nel tuo sito su FSL. Elaborare la richiesta magazzino comunque ?" }]
Now when I try to translate the string to Italian Format I get the error:
pry(#)> I18n.translate("Requested part is not available in your on site FSL.") => "translation missing: it.Requested part is not available in your on site FSL"
This Issue only occurs for a sentence ending with a (.)
Let me kindly Know how to Solve it .
Thanks in Advance !!!
Hi @santosh-1987 ,
I have generalized your issue and investigated it a bit here https://github.com/svenfuchs/i18n/pull/274
In the meantime, try not to use a dot at the end of a translation key, as this is problematic as you can see in the issue I created.
I agree with @Chipairon. Try not to use a dot at the end of keys in the meantime. Once #274 is merged, then you can use dots all you want :D