Skip to content
This repository has been archived by the owner on Jan 22, 2021. It is now read-only.

Commit

Permalink
ro31337#515 Integrate Traditional Chinese (ro31337#516)
Browse files Browse the repository at this point in the history
* ro31337#515 Add Taiwan Translation (Traditional Chinese) (ro31337#510)

Add Taiwan Translation (Traditional Chinese) (繁體中文 - 台灣) (zh-tw)

* ro31337#515 Restore Mandarin Chinese translation

* ro31337#515 Remove _desc keys from zh-tw translation

* ro31337#515 Integrate Traditional Chinese
  • Loading branch information
ro31337 authored Feb 18, 2017
1 parent 47a6325 commit 728d698
Show file tree
Hide file tree
Showing 4 changed files with 78 additions and 3 deletions.
74 changes: 74 additions & 0 deletions locales/zh-tw.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
{
"select-user-type.who_you_are": "請問您是?(您可以在日後進行修改)",
"select-user-type.driver": "司機",
"select-user-type.passenger": "乘客",
"request-phone.type_your_phone": "請傳送您的電話號碼。我們不會在未經允許的情況下分享您的號碼給他人",
"request-phone.button_text": "傳送號碼",
"request-phone.all_set": "👌 都準備好了,可以出發囉!",
"passenger-index.choose_taxi_type": "請選擇您要搭乘的交通工具",
"passenger-index.car": "🚗 汽車",
"passenger-index.motorbike": "🏍 摩托車",
"passenger-index.s": "🔧 設定",
"passenger-index.error_only_known_type": "無法辨識,請選擇車種或點擊設定",
"passenger-request-location.provide_location": "請傳送您的位置訊息來尋找附近的司機",
"passenger-request-destination.provide_destination": "您要去哪裡?請輸入精確的地址,或輸入地點名稱,以便GPS系統搜尋。",
"order-submitted.order_submitted": "⏳ 正在尋找司機... 如果您已經找到,請點擊下方按鈕👇",
"order-submitted.cancel": "接束搜尋",
"order-submitted.error_incorrect_input": "無法辨識,請再試一次",
"order-cancelled.order_cancelled": "👌 感謝您,已完成搜尋。",
"driver-select-vehicle-type.select": "選擇您要出租的交通工具",
"driver-select-vehicle-type.motorbike": "🏍 摩托車",
"driver-select-vehicle-type.car": "🚗 汽車",
"driver-select-vehicle-type.error_only_known_type": "無法辨識,請選擇汽車或摩托車",
"driver-explain-checkins.text": "快完成了。在此提醒您,Telegram沒有及時GPS回報功能,所以當您更換位置時,需在本程式點擊「簽到」,來幫助我們為您找到乘客。您也可以在每小時點擊「簽到」來接受新的訂單。點擊 \"下一步\"以繼續。",
"driver-explain-checkins.next": "下一步",
"driver-request-location.provide_location": "請分享您當前位置,以便乘客找到您。",
"driver-explain-whats-next.text": "都備妥啦!您會收到附近乘客的通知,保持程式運作並於每小時簽到。點擊 \"下一步\"",
"driver-explain-whats-next.next": "下一步",
"driver-index.checkin": "📍 簽到",
"driver-index.mute": "🔕 靜音",
"driver-index.unmute": "🔔 取消靜音(建議選項)",
"driver-index.settings": "🔧 設定",
"driver-index.unknown_choice": "無法辨識,請再試一次。",
"driver-mute.mute_ok": "⚠️ 請注意,在您選擇取消靜音前,您不會收到任何有關乘客的訊息。",
"driver-unmute.unmute_ok": "您已取消靜音,將會收到附近乘客的通知。別忘了每個小時回來點擊「簽到」 。",
"driver-checkin.provide_location": "請分享您當前位置,以便乘客找到您。",
"driver-checkin.ok": "👌 感謝您的簽到! 在每個小時,或是您每次更換位置時記得至此簽到!在此,確認位置訊息是否有誤,若有錯誤,請重新簽到並點擊迴紋針位置(並非點擊按鈕)。",
"driver-order-new.new_order": "🔔 新訂單!",
"driver-order-new.distance": "與乘客距離: ~%s. 乘客位置(點擊放大):",
"driver-order-new.from": "乘客位置: %s",
"driver-order-new.to": "乘客想要去: %s",
"driver-order-new.price": "乘客預計支付: %s (當地貨幣)",
"driver-order-new.call_to_action": "請選擇以下動作 👇 或忽略此訊息",
"driver-order-new.send_my_number": "傳送我的號碼",
"driver-order-new.set_my_price": "自行設定價格",
"driver-order-new.price_not_set": "乘客沒有設定價格,您必須要開價。",
"metric-distance.km": "%s 公里",
"passenger-request-price.set_price": "由乘客設定價格 😉 請以您的當地貨幣開價。 您願意付多少車資?(或輸入 \"0\" (零) 如果您不知道)",
"passenger-request-price.should_be_numeric": "很抱歉,您輸入的必須是數字(且為當地貨幣)! 範例: \"50\"。 請再試一次!",
"passenger-request-price.on_timeout": "看來您等很久了吧!很抱歉。如果您沒有找到司機,我們建議您稍後再試一次。",
"passenger-contact-new-number.message": "🔔 {{driver}} 接受了您的價格! 與駕駛的距離 ~{{distance}}。 撥打給該駕駛以確認訂單:",
"driver-order-set-price.set_price": "請以您的當地貨幣開價。您可以輸入詳細資料來補充,例如: \"20, 如果路況不佳\" or \"15,如果路況良好\"",
"passenger-contact-driver-price.message": "🔔 ⚠️ {{driver}} 提拱此價格: \"{{price}}\"。 與駕駛的距離 ~{{distance}}。 如果您同意其價格,撥打給該駕駛以確認訂單:",
"passenger-verify-location.verify_location": "請確認位置(點擊放大),這個位置是正確的嗎?",
"passenger-verify-location.try_with_paperclip": "請點擊迴紋針,傳送位置,以發送您的位置。",
"passenger-verify-cash.verify_cash": "大多數的駕駛不接受信用卡,請問您有現金嗎?",
"passenger-verify-cash.get_some_cash": "🙁 很抱歉,您必須要有現金才能乘坐,請稍候再試一次。",
"driver-request-radius.request_radius": "您希望能載到多遠的乘客? 從清單中選擇 👇 或直接輸入數字(多至10公里)。",
"driver-request-radius.option1": "1 公里 (~0.6 英里)",
"driver-request-radius.option3": "3 公里 (~1.8 英里),推薦",
"driver-request-radius.option5": "5 公里 (~3.1 英里)",
"driver-request-radius.should_be_valid": "輸入無效,請從下方選擇 👇 或輸入由 1 至 10的號碼。",
"global.location_button_text": "傳送位置",
"global.default_options_message": "請從下方選單中選擇一個項目 👇",
"global.default_inline_options_message": "點擊按鈕 👇 或忽略此訊息",
"global.replied_to_order": "✔️ 您已回覆此訂單 ☝️ 。 稍後駕駛會撥號給您以確認訂單",
"global.yes": "",
"global.no": "",
"global.error_try_again": "很抱歉,無法辨識,請重新輸入。",
"global.error_location": "很抱歉,無法辨識地址。 請點擊按鈕或點擊迴紋針以傳送位置訊息。",
"global.driver": "駕駛",
"global.phone": "☎️ %s",
"__locale__": "zh-tw",
"__eof__": "__eof__"
}
3 changes: 2 additions & 1 deletion src/validations/supported-locales.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,13 @@ localeMap.set('en', 'English');
localeMap.set('es', 'Español');
localeMap.set('fa', 'فارسی');
localeMap.set('zh-cn', '官话');
localeMap.set('zh-tw', '繁體中文');
localeMap.set('ru', '🇷🇺 Русский');
localeMap.set('id', '🇮🇩 Bahasa Indonesia');
localeMap.set('pt-br', '🇧🇷 Português');
localeMap.set('fr', 'Français');
localeMap.set('de', 'Deutsch');
localeMap.set('tr', '🇹🇷 Türkçe');
localeMap.set('id', '🇮🇩 Bahasa Indonesia');

/**
* @typedef SupportedLocales
Expand Down
2 changes: 1 addition & 1 deletion test/i18n-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import walk from 'walk';
import oboe from 'oboe';
import fs from 'fs';

const NUM_OF_LOCALIZATIONS = 10;
const NUM_OF_LOCALIZATIONS = 11;

test.cb('locales should have all keys from en.json, except *_desc', t => {
t.plan(NUM_OF_LOCALIZATIONS - 1);
Expand Down
2 changes: 1 addition & 1 deletion test/menu/select-locale-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ test('should return composite response on get', t => {
t.is(response.type, 'composite');
t.is(response.responses.length, 2);
t.is(response.responses[0].type, 'text');
t.is(response.responses[0].message, 'Select your language (page 1/2):');
t.is(response.responses[0].message, 'Select your language (page 1/3):');
t.is(response.responses[1].type, 'options');
t.is(response.responses[1].totalItems, locales.length);
});
Expand Down

0 comments on commit 728d698

Please sign in to comment.