using UnityEngine;

namespace NBC
{
    public interface ILanguage
    {
        /// <summary>
        /// 获取一个key对应的结果
        /// </summary>
        /// <param name="key"></param>
        /// <returns></returns>
        string Get(string key);

        /// <summary>
        /// 添加一个多语言键值对
        /// </summary>
        /// <param name="language"></param>
        void AddLanguage(SystemLanguage language);

        /// <summary>
        /// 使用某个语言，通过语言枚举
        /// </summary>
        /// <param name="language"></param>
        /// <returns></returns>
        bool UseLanguage(SystemLanguage language);
    }
}