/// 创建多语言资源字符串id管理类StringIds 和 多语言资源Map

/// 多语言资源id管理类
class Ids {
  static const String server_url_set = 'server_url_set';
  static const String titleHome = 'title_home';
  static const String titleRepos = 'title_repos';
  static const String titleEvents = 'title_events';
  static const String titleList = 'title_list';
  static const String titleVersion = 'title_version';

  static const String titleBookmarks = 'title_bookmarks';
  static const String titleCollection = 'title_collection';
  static const String titleSetting = 'title_setting';
  static const String titleAbout = 'title_about';
  static const String titleHelp = 'title_help';
  static const String titleShare = 'title_share';
  static const String titleSignOut = 'title_signout';
  static const String titleLanguage = 'title_language';
  static const String titleTheme = 'title_theme';
  static const String titleAuthor = 'title_author';
  static const String titleOther = 'title_other';

  static const String languageAuto = 'language_auto';
  static const String languageZH = 'language_zh';
  static const String languageTW = 'language_tw';
  static const String languageHK = 'language_hk';
  static const String languageEN = 'language_en';

  static const String save = 'save';
  static const String more = 'more';

  static const String recRepos = 'rec_repos';
  static const String recWxArticle = 'rec_wxarticle';

  static const String titleReposTree = 'title_repos_tree';
  static const String titleWxArticleTree = 'title_wxarticle_tree';
  static const String titleSystemTree = 'title_list_tree';

  static const String user_name = 'user_name';
  static const String user_pwd = 'user_pwd';
  static const String user_re_pwd = 'user_re_pwd';
  static const String user_login = 'user_login';
  static const String user_register = 'user_register';
  static const String user_forget_pwd = 'user_forget_pwd';
  static const String user_new_user_hint = 'user_new_user_hint';

  static const String confirm = 'confirm';
  static const String cancel = 'cancel';

  static const String jump_count = 'jump_count';

  static const String hint_new_version = 'hint_new_version'; // 有最新版
  static const String hint_is_new = 'hint_is_new'; // 已是最新版
  static const String hint_quit = 'hint_quit'; // 确定退出吗？
}

// 简单多语言资源
Map<String, Map<String, String>> localizedSimpleValues = {
  'en': {
    Ids.titleHome: 'Home',
    Ids.titleRepos: 'Repos',
    Ids.titleEvents: 'Events',
    Ids.titleList: '列表示例',
    Ids.titleBookmarks: 'Bookmarks',
    Ids.titleSetting: 'Setting',
    Ids.titleAbout: 'About',
    Ids.titleShare: 'Share',
    Ids.titleSignOut: 'Sign Out',
    Ids.titleLanguage: 'Language',
    Ids.languageAuto: 'Auto',
  },
  'zh': {
    Ids.titleHome: '主页',
    Ids.titleRepos: '项目',
    Ids.titleEvents: '动态',
    Ids.titleList: '列表示例',
    Ids.titleBookmarks: '书签',
    Ids.titleSetting: '设置',
    Ids.titleAbout: '关于',
    Ids.titleShare: '分享',
    Ids.titleSignOut: '退出',
    Ids.titleLanguage: '多语言',
    Ids.languageAuto: '跟随系统',
  },
};

// 多语言资源
Map<String, Map<String, Map<String, String>>> localizedValues = {
  'en': {
    'US': {
      Ids.titleHome: 'Home',
      Ids.titleRepos: 'Repos',
      Ids.titleEvents: 'Events',
      Ids.titleList: 'List',
      Ids.titleBookmarks: 'Bookmarks',
      Ids.titleCollection: 'Collection',
      Ids.titleSetting: 'Setting',
      Ids.titleAbout: 'About',
      Ids.titleHelp: 'Help',
      Ids.titleShare: 'Share',
      Ids.titleSignOut: 'Sign Out',
      Ids.titleLanguage: 'Language',
      Ids.titleVersion: 'Version update',
      Ids.languageAuto: 'Auto',
      Ids.save: 'Save',
      Ids.more: 'More',
      Ids.recRepos: 'Reco Repos',
      Ids.recWxArticle: 'Reco WxArticle',
      Ids.titleReposTree: 'Repos Tree',
      Ids.titleWxArticleTree: 'Wx Article',
      Ids.titleTheme: 'Theme',
      Ids.server_url_set: 'server setting',
      Ids.user_name: 'user name',
      Ids.user_pwd: 'password',
      Ids.user_re_pwd: 'confirm password',
      Ids.user_login: 'Login',
      Ids.user_register: 'Register',
      Ids.user_forget_pwd: 'Forget the password?',
      Ids.user_new_user_hint: 'New users? ',
      Ids.confirm: 'Confirm',
      Ids.cancel: 'Cancel',
      Ids.jump_count: 'Jump %\$0\$s',
      Ids.hint_new_version: 'new version comming!',
      Ids.hint_is_new: 'The latest version',
      Ids.hint_quit: 'Are you sure to quit the app?'
    }
  },
  'zh': {
    'CN': {
      Ids.titleHome: '主页',
      Ids.titleRepos: '项目',
      Ids.titleEvents: '动态',
      Ids.titleList: '列表',
      Ids.titleBookmarks: '书签',
      Ids.titleCollection: '收藏',
      Ids.titleSetting: '设置',
      Ids.titleAbout: '关于',
      Ids.titleHelp: '帮助',
      Ids.titleShare: '分享',
      Ids.titleSignOut: '退出',
      Ids.titleVersion: '版本更新',
      Ids.titleLanguage: '多语言',
      Ids.languageAuto: '跟随系统',
      Ids.languageZH: '简体中文',
      Ids.languageTW: '繁體中文（台灣）',
      Ids.languageHK: '繁體中文（香港）',
      Ids.languageEN: 'English',
      Ids.save: '保存',
      Ids.more: '更多',
      Ids.recRepos: '推荐项目',
      Ids.recWxArticle: '推荐公众号',
      Ids.titleReposTree: '项目分类',
      Ids.titleWxArticleTree: '公众号',
      Ids.titleTheme: '主题',
      Ids.server_url_set: '服务器配置',
      Ids.user_name: '用户名',
      Ids.user_pwd: '密码',
      Ids.user_re_pwd: '确认密码',
      Ids.user_login: '登录',
      Ids.user_register: '注册',
      Ids.user_forget_pwd: '忘记密码？',
      Ids.user_new_user_hint: '新用户？',
      Ids.confirm: '确认',
      Ids.cancel: '取消',
      Ids.jump_count: '跳过 %\$0\$s',
      Ids.hint_new_version: '有新版本啦！快来体验',
      Ids.hint_is_new: '已是最新版本',
      Ids.hint_quit: '确定退出吗?'
    },
    'HK': {
      Ids.titleHome: '主頁',
      Ids.titleRepos: '項目',
      Ids.titleEvents: '動態',
      Ids.titleList: '列表',
      Ids.titleBookmarks: '書簽',
      Ids.titleCollection: '收藏',
      Ids.titleSetting: '設置',
      Ids.titleAbout: '關於',
      Ids.titleHelp: '幫助',
      Ids.titleShare: '分享',
      Ids.titleSignOut: '註銷',
      Ids.titleLanguage: '語言',
      Ids.titleVersion: '版本更新',
      Ids.languageAuto: '與系統同步',
      Ids.save: '儲存',
      Ids.more: '更多',
      Ids.recRepos: '推荐项目',
      Ids.recWxArticle: '推荐公众号',
      Ids.titleReposTree: '项目分类',
      Ids.titleWxArticleTree: '公众号',
      Ids.titleTheme: '主題',
      Ids.server_url_set: '服務器配置',
      Ids.user_name: '用户名',
      Ids.user_pwd: '密码',
      Ids.user_re_pwd: '确认密码',
      Ids.user_login: '登录',
      Ids.user_register: '注册',
      Ids.user_forget_pwd: '忘记密码？',
      Ids.user_new_user_hint: '新用户？',
      Ids.confirm: '确认',
      Ids.cancel: '取消',
      Ids.jump_count: '跳过 %\$0\$s',
      Ids.hint_new_version: '有新版本了!快來體驗',
      Ids.hint_is_new: '已是最新版本',
      Ids.hint_quit: '确定退出吗?'
    },
    'TW': {
      Ids.titleHome: '主頁',
      Ids.titleRepos: '項目',
      Ids.titleEvents: '動態',
      Ids.titleList: '體系',
      Ids.titleBookmarks: '書簽',
      Ids.titleCollection: '收藏',
      Ids.titleSetting: '設置',
      Ids.titleAbout: '關於',
      Ids.titleShare: '分享',
      Ids.titleHelp: '幫助',
      Ids.titleSignOut: '註銷',
      Ids.titleLanguage: '語言',
      Ids.titleVersion: '版本更新',
      Ids.languageAuto: '與系統同步',
      Ids.save: '儲存',
      Ids.more: '更多',
      Ids.recRepos: '推荐项目',
      Ids.recWxArticle: '推荐公众号',
      Ids.titleReposTree: '项目分类',
      Ids.titleWxArticleTree: '公众号',
      Ids.titleTheme: '主題',
      Ids.server_url_set: '服務器配置',
      Ids.user_name: '用户名',
      Ids.user_pwd: '密码',
      Ids.user_re_pwd: '确认密码',
      Ids.user_login: '登录',
      Ids.user_register: '注册',
      Ids.user_forget_pwd: '忘记密码？',
      Ids.user_new_user_hint: '新用户？',
      Ids.confirm: '确认',
      Ids.cancel: '取消',
      Ids.jump_count: '跳过 %\$0\$s',
      Ids.hint_new_version: '有新版本了!快來體驗',
      Ids.hint_is_new: '已是最新版本',
      Ids.hint_quit: '确定退出吗?'
    }
  }
};
