Translated dates based on display language. (#567)
* Updating the app's culture based on the display language and making sure that dates/times are properly translated.
This commit is contained in:
@@ -9,4 +9,5 @@ public interface ITranslationService : IInitializeAsync
|
||||
{
|
||||
Task InitializeLanguageAsync(AppLanguage language, bool ignoreCurrentLanguageCheck = false);
|
||||
List<AppLanguageModel> GetAvailableLanguages();
|
||||
AppLanguageModel CurrentLanguageModel { get; }
|
||||
}
|
||||
|
||||
@@ -2,4 +2,4 @@
|
||||
|
||||
namespace Wino.Core.Domain.Models.Translations;
|
||||
|
||||
public record AppLanguageModel(AppLanguage Language, string DisplayName);
|
||||
public record AppLanguageModel(AppLanguage Language, string DisplayName, string Code);
|
||||
|
||||
Reference in New Issue
Block a user