1
0
mirror of https://github.com/bitwarden/mobile.git synced 2024-09-27 03:52:57 +02:00
bitwarden-mobile/src/Core/Abstractions/II18nService.cs
Federico Maccaroni 470e08f165
[EC-1002] [BEEEP] Add ability to change language in app (#2299)
* EC-1002 BEEEP Added ability to change language in app

* EC-1002 fix format

* EC-1002 Renamed IPreferencesStorageService to ISynchronousStorageService

* EC-1002 Moved get/set Locale to the StateService and added the StorageMediatorService to a new way to interact with the storage. Later the StateService will only interact with this mediator instead of directly with the storage services, with this we have more control inside the mediator and we can have both sync and async methods to interact with storages handled by the mediator
2023-03-01 13:28:28 -03:00

17 lines
534 B
C#

using System;
using System.Collections.Generic;
using System.Globalization;
namespace Bit.Core.Abstractions
{
public interface II18nService
{
CultureInfo Culture { get; set; }
StringComparer StringComparer { get; }
Dictionary<string, string> LocaleNames { get; }
void SetCurrentCulture(CultureInfo culture);
string T(string id, string p1 = null, string p2 = null, string p3 = null);
string Translate(string id, string p1 = null, string p2 = null, string p3 = null);
}
}