L20n/Features/Multilocale resources: Difference between revisions

Jump to navigation Jump to search
No edit summary
Line 31: Line 31:
== status ==
== status ==


So far we decided that we don't want to introduce another block structure into L20n, and we can reuse [[L20n/Features/Conditional_blocks|if in @import]] for the former goal.
We decided to reuse [[L20n/Features/Conditional_blocks|if in @import]] for this goal.


<pre>
<pre>
@import("path/to/resource") if (@locale=="en-US")
 
@import("path/to/resource2") if (@locale=="pl")
if (@locale="fr") {
  <entity "value">
}
 
and
 
import("path/to/resource") if (@locale=="en-US")
import("path/to/resource2") if (@locale=="pl")
</pre>
</pre>


Confirmed users
1,016

edits

Navigation menu