$.i18n.init({ //lng: 'en-US', lng: 'ko-KR', debug: true, useLocalStorage: false, localStorageExpirationTime: 86400000, // in ms, default 1 week //resGetPath: 'js/locales/translation.json' resStore: { "en-US": { "A": { "title": "Yansha, Beijing", "addr": "3rd floor No.420 WangJingXiyuan Chaoyang District, Beijing", "a": "Prosoycrab Wangjing, Beijing, China opened in 2014 and is operating with the great taste and service just as the Prosoycrab Sinsa Seoul.", "b": "Prosoycrab Wangjing opens for all year around except for the Chinese New year from 11:30 AM to 10 PM. Prosoycrab Wangjing has total of 70 seats.", "c": "- Open throughout the year", "d": "- Reservation ", "e": "- Food packing service" } }, "ko-KR": { "A": { "title": "중국 북경 왕징점", "addr": "베이징시 챠오양취 왕징시유엔4취 420 하오로우 3층", "a": "중국 북경왕징점은 2014년에 오픈 하여, 신사본점과 같은 맛과 서비스로 운영하고있습니다.", "b": "춘절제외 연중무휴로 운영하고 있으며 오전 11시 30분부터 오후 10시까지 입니다. 총 70석 규모로 운영중 입니다.", "c": "- 연중무휴", "d": "- 예약 서비스", "e": "- 포장 서비스" } }, "js": { "A": { "title": "中国 北京望京店", "addr": "中国北京市朝阳区望京西园四区420号楼3层", "a": "中国の北京ワンジン店は2014年オープンしシンサ本店と同じ味とサービスで運営しています。", "b": "春節を除き年中無休で運営しており午前11時30分から午後10時までです。全70席規模で運営しています。", "c": "- 年中無休", "d": "- 予約可能", "e": "- お持ち帰り可能" } }, "ch": { "A": { "title": "中国 北京望京店", "addr": "中国北京市朝阳区望京西园四区420号楼3层", "a": "中国北京望京店于2014年开业, 为大家提供与新沙洞店一样的美味和服务.", "b": "该店营业时间为上午11点30分到晚上10点, 全年无休(春节除外), 共70个座位.", "c": "- 年中无休", "d": "- 预约可能", "e": "- 包装可能" } } } }, function () { $('.translation').i18n(); }); var changeLang = function (lang) { $(this).addClass('active').siblings('a').removeClass('active'); $.i18n.setLng(lang); $('.translation').i18n(); }