$.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": "Tokyo, Japan", "addr": "Social Akasaka B/D 2F, Akasaka 3-11-7, Minato-gu, Tokyo", "a": "Prosoycrab Akasaka Tokyo Japan opened in 2010 and the first branch in overseas operating with the great taste and service just as the Prosoycrab Sinsa Seoul", "b": "Prosoycrab Tokyo opens for all year around from 11:30 to 23:00, and have total of 72 seats.", "c": "- Open throughout the year", "d": "- Reservation ", "e": "- Food packing service" } }, "ko-KR": { "A": { "title": "일본 동경점", "addr": "도쿄도 미나토구 아카사카 3-11-7 소시아르 아카사카 B/D 2F", "a": "일본 동경 아카사카점은 2010년에 오픈하여, 신사본점과 같은 맛과 서비스로 운영하고있는 프로간장게장 첫 해외 직영점 입니다.", "b": "연중무휴 오전 11시 30분부터 오후 11까지 운영하고 있으며, 총 72석 규모로 운영중 입니다.", "c": "- 연중무휴", "d": "- 예약 서비스", "e": "- 포장 서비스" } }, "js": { "A": { "title": "日本 東京店", "addr": "東京都港区赤坂3-11-7ソシアル赤坂ビル2F", "a": "日本の東京赤坂店は2010年オープンし、シンサ本店と同じ味とサービスで運営しているプロカンジャンケジャンの初海外支店です。", "b": "昼食は午前11時から午後3時まで、夕食は午後5時から午後11時まで年中無休で運営しています。全72席規模です。", "c": "- 年中無休", "d": "- 予約可能", "e": "- お持ち帰り可能" } }, "ch": { "A": { "title": "日本 东京店", "addr": "东京都 港区 赤坂 3-11-7 SOCIAL ACASAKA B/D 2F", "a": "日本东京赤坂店于2010年开业, 为大家提供与新沙洞店一样的美味和服务, 是普乐酱蟹开的第一家海外分店.", "b": "该店营业时间为上午11点到下午3点, 晚上5点到11点, 全年无休, 共72个座位.", "c": "- 年中无休", "d": "- 预约可能", "e": "- 包装可能" } } } }, function () { $('.translation').i18n(); }); var changeLang = function (lang) { $(this).addClass('active').siblings('a').removeClass('active'); $.i18n.setLng(lang); $('.translation').i18n(); }