M_i18n.lua 616 B

12345678910111213141516171819
  1. M_i18n = {}
  2. function M_i18n:getData(key)
  3. if self.datas == nil then
  4. return nil
  5. end
  6. return self.datas[key]
  7. end
  8. function M_i18n:init()
  9. self.datas = {}
  10. self.datas["10002"] = {ID = "10002", zh = "今日剩余次数:#&0次", en = "Remaining times today: #&0 times"}
  11. self.datas["10003"] = {ID = "10003", zh = "魔法转盘", en = "Magic Carousel"}
  12. self.datas["10004"] = {ID = "10004", zh = "神秘事务司", en = "Division of Mystery Affairs"}
  13. self.datas["1000000"] = {ID = "1000000", zh = "第一", en = "first"}
  14. self.datas["1000001"] = {ID = "1000001", zh = "哈哈哈", en = "hahaha"}
  15. end
  16. M_i18n:init()