2015-10-31 07:17:34 +08:00
|
|
|
|
using System.Collections.Generic;
|
2015-01-03 15:20:34 +08:00
|
|
|
|
|
|
|
|
|
namespace Wox.Core.i18n
|
|
|
|
|
{
|
|
|
|
|
interface IInternationalization
|
|
|
|
|
{
|
|
|
|
|
List<Language> LoadAvailableLanguages();
|
|
|
|
|
|
|
|
|
|
string GetTranslation(string key);
|
|
|
|
|
|
2015-01-06 18:28:23 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Get language file for current user selected language
|
|
|
|
|
/// if couldn't find the current selected language file, it will first try to load en.xaml
|
2015-01-06 23:24:11 +08:00
|
|
|
|
/// if en.xaml couldn't find, return empty string
|
2015-01-06 18:28:23 +08:00
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="folder"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
string GetLanguageFile(string folder);
|
|
|
|
|
|
2015-01-03 15:20:34 +08:00
|
|
|
|
void ChangeLanguage(Language language);
|
|
|
|
|
|
|
|
|
|
void ChangeLanguage(string languageCode);
|
|
|
|
|
}
|
|
|
|
|
}
|