using System; using System.Globalization; namespace Bit.App.Abstractions { /// /// Implementations of this interface MUST convert iOS and Android /// platform-specific locales to a value supported in .NET because /// ONLY valid .NET cultures can have their RESX resources loaded and used. /// /// /// Lists of valid .NET cultures can be found here: /// http://www.localeplanet.com/dotnet/ /// http://www.csharp-examples.net/culture-names/ /// You should always test all the locales implemented in your application. /// public interface ILocalizeService { /// /// This method must evaluate platform-specific locale settings /// and convert them (when necessary) to a valid .NET locale. /// CultureInfo GetCurrentCultureInfo(); /// /// CurrentCulture and CurrentUICulture must be set in the platform project, /// because the Thread object can't be accessed in a PCL. /// void SetLocale(CultureInfo ci); } }