DocSpace-client/common/Tests/Frontend.Translations.Tests/Models/TranslationFile.cs

32 lines
782 B
C#
Raw Normal View History

using System.Collections.Generic;
using System.IO;
namespace Frontend.Translations.Tests
{
public class TranslationFile
{
2021-12-21 13:12:37 +00:00
public TranslationFile(string path, List<TranslationItem> translations, string md5hash = null)
{
FilePath = path.Replace("/", "\\");
2021-05-20 15:11:43 +00:00
FileName = Path.GetFileName(FilePath);
Language = Directory.GetParent(FilePath).Name; //FilePath.Substring(FilePath.IndexOf("locales\\") + 8, 2);
Translations = translations;
2021-12-21 13:12:37 +00:00
Md5Hash = md5hash;
}
public string FilePath { get; }
public string FileName { get; }
public string Language { get; }
2021-05-20 15:11:43 +00:00
public List<TranslationItem> Translations { get; }
2021-12-21 13:12:37 +00:00
public string Md5Hash { get; }
}
}