locked
Globalization does not work after publishing to store

    Question

  • Hi,

    I am building a multilingual WP 8.1 app

    After having my app tested on the emulator and my device the globalization worked correctly, but when I publish the app to the store, the app does not switch between the languages??

    below is the code that I built to switch between the languages:

     public static ResourceLoader loader
            {
                get
                {
                    if (!string.IsNullOrEmpty(DB.Lang))
                    {var culture = new CultureInfo(DB.Lang);
                        Windows.Globalization.ApplicationLanguages.PrimaryLanguageOverride = culture.Name;
                        CultureInfo.DefaultThreadCurrentCulture = culture;
                        CultureInfo.DefaultThreadCurrentUICulture = culture;
                        return new ResourceLoader();}
                    return _loader;
                }
                set
                {
                    if (value != null)
                        _loader = value;
                }
            }

    the 'loader' is a static variable inside 'UIHelper' class I use to get the localized strings as follows:

    UIHelper.loader.GetString("ErrorIdMissing");

    Please help!!

    Wednesday, March 11, 2015 4:53 PM

Answers