Localization of Components
The menus of "FLOW" have been localized.
However, it did not become a component.
Should I give you another option?
Note, it is applied as default.resource. FLOW is Other.resource.
Thank You~
Additionally found "self.language" in "FN.websocket".
But I didn't find the part that sets "self.language" anywhere.
Hi @KangGeunSu, do you mean localization for the components?
Yes, I do
Try to update flow.package (https://github.com/totaljs/flow) - I think that I have fixed localization.
I tried after update, but still can't.
"client.language" is "undefined"
In my opinion, just use "client.req.$language".
"client.req.$language" comes out the value I set
sorry, client.req.$language is seems to be the PC setting..
I would like it to be set to "LOCALIZE".
Hi @KangGeunSu, yes - language can be set in LOCALIZE().
LOCALIZE(function(req, res) { // if "query.language" will be undefined then the framework uses default resource return req.query.language; });
If you add the code above, then "Flow UI" is applied, but the inside of "Component" is still default.
http://localhost:8001/?language=ko
Info, console... is to 정보, 콘솔

but, The inside of "Debug" remains the same.

Also, client.language is undefined.
my ko.resource
// debug.js
Tcyyznd : 출력 타입
Tl8ltdw : 예: 온도
T1h73owc : 그룹 이름
.....
// index.html
T1cy4u : 정보
T179lgs7 : 콘솔
Tygvmh7 : 에러
Yes. I have added ?language= to the WebSocket address. I think that now it will work, please:
- download
flow.packagehttps://github.com/totaljs/flow - restart app
- give me a feedback
I checked what came over.
In index.js, "client.language" should be changed to "client.query.language". client.language is undefined client.query.language is language of Value(ko)
Or you can use "client.req.$language".
@KangGeunSu my mistake :-( really sorry. I found a problem in Total.js framework because client.language wasn't assigned for WebSocket. Please download flow.package, I have assigned req.$language to translator. I have tested it and it works correctly.
Has confirmed. Thank you all the time. Have a good day!