Beispiel #1
0
        private void InitialiseCulture()
        {
            IPlatformProvider platformProvider = container.GetInstance <IPlatformProvider>();

            if (platformProvider.PlatformInfo.PlatformType != PlatformTypeEnum.AppleIOS ||
                platformProvider.PlatformInfo.PlatformType != PlatformTypeEnum.Android)
            {
                return;
            }

            ILocalisationService localise = container.GetInstance <ILocalisationService>();

            localise.SetCulture(localise.GetCurrentCultureInfo());
        }
Beispiel #2
0
        /// <summary>
        /// Initialises a specific .Net Resource file with localised strings to application culture through localisation service.
        /// </summary>
        private void InitialiseLocalisedResourceFileWithCulture(out CultureInfo targetCultureInResourceFile)
        {
            ILocalisationService localise = container.GetInstance <ILocalisationService>();

            targetCultureInResourceFile = localise.GetCurrentCultureInfo();
        }