Languages

Menu
Sites
Language
Web widget localization weird behaviour

Hello everbody,

I have a weird problem related to localization and i am struglling with it for a week, but i couldnot resolve.

I have a web project and a widget inside it. Both web application and widget have locales folder both English and Turkish.

Directory structure is like below:

.wgt

    index.html

    config.xml

    icon.png
    
    css
    
    images
    
    js
    
    lib

    language.js
    
    locales
    
        en
    
            language.js

        tr-tr
    
            language.js
    
    widget
    
        widget001
    
            index.html
            
            config.xml
            
            icon.png
            
            css
            
            images
            
            js
            
            language.js

            locales
            
                en
            
                    language.js
            
                tr-tr
            
                    language.js

In language.js files there is language locale defines for each language

TIZEN_L10N=
{
"location" : " Location",
"about" : " About",

...

TIZEN_L10N=
{
"location" : " Yer Seçimi",
"about" : " Hakkında",
...
 
In the web app or widget shows strings for each system language, in Tizen 2.3.2 emulator, and Tizen 5.0 watch correctly. But in Tizen 5.5 Emulator, for only widget side app could not show language translations. The application side seems ok, but the widget side could not show Turkish or English translations. For both language, widget TIZEN_L10N['location'] gets default language.js file definition, not the locales folder language.js translations. Could you give me any idea or anything else? I tried lots of things, but could not resolve it. Why Tizen 5.5 and widget side has a problem like this. I could not understand. 
 
Edited by: Faith Softw on 17 Aug, 2020