public Task <bool> SaveToFileAsync(IYiSoTranslationFile file) => Task.Run(() => SaveToFile(file));
public void ReadFromFile(IYiSoTranslationFile file) { }
public bool SaveToFile(IYiSoTranslationFile file) { return(true); }
/// <summary> /// export the translations to the file ASYNC /// </summary> /// <param name="file">the Translations File where to save the translations</param> /// <returns>true if the content is saved, false if any problem</returns> /// <exception cref="TranslationFileNotSpecifiedExceptions">if file is null or invalid</exception> /// <exception cref="TranslationFileMissingExceptions">if the file not exist</exception> /// <exception cref="NonValidTranslationFileExtensionExceptions">if the doesn't have a .json extension</exception> public async Task <bool> SaveToFileAsync(IYiSoTranslationFile file) => await TranslationsProvider.SaveToFileAsync(file);
/// <summary> /// export the translations to the file /// </summary> /// <returns>true if the content is saved, false if any problem</returns> /// <exception cref="TranslationFileNotSpecifiedExceptions">if file is null or invalid</exception> /// <exception cref="TranslationFileMissingExceptions">if the file not exist</exception> /// <exception cref="NonValidTranslationFileExtensionExceptions">if the doesn't have a .json extension</exception> public bool SaveToFile(IYiSoTranslationFile file) => TranslationsProvider.SaveToFile(file);
/// <summary> /// read translations Groups from the given file, /// the non existing translations will be add to the list of translation, /// others will be escaped /// </summary> /// <param name="file">file to read from</param> public void GetTranslationsFromFile(IYiSoTranslationFile file) => TranslationsProvider.ReadFromFile(file);