protected override void Awake()
        {
            ApplicationContext   context        = Context.GetApplicationContext();
            BindingServiceBundle bindingService = new BindingServiceBundle(context.GetContainer());

            bindingService.Start();

            CultureInfo cultureInfo = Locale.GetCultureInfo();

            localization             = Localization.Current;
            localization.CultureInfo = cultureInfo;
            localization.AddDataProvider(new DefaultDataProvider("LocalizationTutorials", new XmlDocumentParser()));
        }
        protected override void Awake()
        {
            ApplicationContext            context        = Context.GetApplicationContext();
            ILRuntimeBindingServiceBundle bindingService = new ILRuntimeBindingServiceBundle(context.GetContainer());

            bindingService.Start();

            CultureInfo cultureInfo = Locale.GetCultureInfoByLanguage(SystemLanguage.English);

            localization             = Localization.Current;
            localization.CultureInfo = cultureInfo;
            localization.AddDataProvider(new DefaultDataProvider("Localizations", new XmlDocumentParser()));
            context.GetContainer().Register <Localization>(localization);
        }
        protected override void Awake()
        {
            //获得应用上下文
            ApplicationContext context = Context.GetApplicationContext();
            //启动数据绑定服务
            BindingServiceBundle bindingService = new BindingServiceBundle(context.GetContainer());

            bindingService.Start();
            //初始化本地化服务
            //CultureInfo cultureInfo = Locale.GetCultureInfo();
            //var provider = new DefaultDataProvider("LocalizationTutorials", new XmlDocumentParser());
            //Localization.Current = Localization.Create(provider, cultureInfo);

            CultureInfo cultureInfo = Locale.GetCultureInfo();

            localization             = Localization.Current;
            localization.CultureInfo = cultureInfo;
            localization.AddDataProvider(new DefaultDataProvider("LocalizationTutorials", new XmlDocumentParser()));
        }