mirror of
https://github.com/bitwarden/mobile.git
synced 2024-09-26 03:42:57 +02:00
83fd6736f6
- uses Apple APIs for formatting on iOS - uses .Net APIs for formatting Android - implemented across project - remove unnecesary calls to DateTimeConverter
23 lines
600 B
C#
23 lines
600 B
C#
using System;
|
|
using System.Globalization;
|
|
|
|
namespace Bit.App.Abstractions
|
|
{
|
|
public interface ILocalizeService
|
|
{
|
|
CultureInfo GetCurrentCultureInfo();
|
|
|
|
/// <summary>
|
|
/// Format date using device locale.
|
|
/// Needed for iOS as it provides locales unsupported in .Net
|
|
/// </summary>
|
|
string GetLocaleShortDate(DateTime? date);
|
|
|
|
/// <summary>
|
|
/// Format time using device locale.
|
|
/// Needed for iOS as it provides locales unsupported in .Net
|
|
/// </summary>
|
|
string GetLocaleShortTime(DateTime? time);
|
|
}
|
|
}
|