totaljs / framework

Node.js framework
http://www.totaljs.com
Other
4.36k stars 450 forks source link

use Localization in resource file #575

Closed bkhurram closed 6 years ago

bkhurram commented 6 years ago

HI, Currently, localization does not work within another location

example page.html

...
@(#label.one)<br/>
@(#label.two)<br/>
@(#label.tree)<br/>
...

en.resource

label.one : LABEL 1 @(#label.two)
label.two : LABEL 2 @(#label.tree)
label.tree : LABEL 3

output:

LABEL 1 @(#label.two)
LABEL 2 @(#label.tree)
LABEL 3

i want my output as:

LABEL 1 LABEL 2 LABEL 3
LABEL 2 LABEL 3
LABEL 3

is there a way to use it?

Thanks, Khurram

petersirka commented 6 years ago

Hi @bkhurram, this is not possible. Resource can't contain a reference to another resource.

bkhurram commented 6 years ago

you might consider it an implementation to be done in the future