Esempio n. 1
0
            public static void InitWPFLocalizeExtension(DependencyObject view)
            {
                var assemblyName = view.GetType().Assembly.GetName().Name;

                ResxLocalizationProvider.SetDefaultAssembly(view, assemblyName);
                ResxLocalizationProvider.SetDefaultDictionary(view, $"{assemblyName}.Properties.Resources");
            }
Esempio n. 2
0
        /// <inheritdoc />
        public App()
        {
            var provider = ResxLocalizationProvider.Instance;

            ResxLocalizationProvider.SetSupportLanguages(provider, new[]
            {
                "ar", "en", "de", "he"
            });

            ResxLocalizationProvider.SetDefaultAssembly(provider, "HelloWorldWPF");
            ResxLocalizationProvider.SetDefaultDictionary(provider, "Ressourcen");
        }