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()); }
/// <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(); }