$.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": "Osaka, Japan", "addr": "Sonejakisinchi 1-5-24, Kita-gu, Osaka-city, Osaka", "a": "Prosoycrab Osaka is the second branch in Japan opened in 2012, and operating with the great taste and service just as the Prosoycrab Sinsa Seoul.", "b": "Prosoycrab Osaka opens for all year around from 11 AM to 3 PM for lunch. Prosoycrab Osaka is operating with total of 50 seats.", "c": "- Open throughout the year", "d": "- Reservation ", "e": "- Food packing service" } }, "ko-KR": { "A": { "title": "일본 오사카점", "addr": "오사카시 키타구 소내자키신치 1-5-24", "a": "일본 오사카점은 2012년에 오픈한 일본 두번째 분점으로, 신사본점과 같은 맛과 서비스로 운영하고 있습니다.", "b": "오전 11시부터 오후 3시까지, 저녁 식사시간은 오후 5시부터 오후 11시까지 영업합니다. 연중무휴이며, 총 50석 규모로 운영중 입니다.", "c": "- 연중무휴", "d": "- 예약 서비스", "e": "- 포장 서비스" } }, "js": { "A": { "title": "日本 大阪店", "addr": "大阪市北区曽根崎新地1-5-24", "a": "日本の大阪店は2012年オープンした日本二つ目の支店で、シンサ本店と同じ味とサービスで運営しています。", "b": "昼食は午前11時から午後3時まで、夕食は午後5時から午後11時まで年中無休で運営しています。全50席規模です。", "c": "- 年中無休", "d": "- 予約可能", "e": "- お持ち帰り可能" } }, "ch": { "A": { "title": "日本 大阪店", "addr": "大阪市 北区 曾根崎新地 1-5-24", "a": "日本大坂店于2012年开业, 是日本第二家分店,", "b": "为大家提供与新沙洞店一样的美味和服务. 该店营业时间为上午11点到下午3点, 晚上5点到11点, 全年无休, 共50个座位.", "c": "- 年中无休", "d": "- 预约可能", "e": "- 包装可能" } } } }, function () { $('.translation').i18n(); }); var changeLang = function (lang) { $(this).addClass('active').siblings('a').removeClass('active'); $.i18n.setLng(lang); $('.translation').i18n(); }