ThingWorx Flow > ThingWorx Flow 安裝與管理 > 管理 ThingWorx Flow > 將新地區設定新增至 ThingWorx Flow
將新地區設定新增至 ThingWorx Flow
先決條件
請確保您已在 ThingWorx 中建立地區設定。
完成下列步驟以將新地區設定新增至 ThingWorx Flow
1. \ThingWorxOrchestration\modules\static-ux\localesThingWorx Flow 安裝目錄下,建立具有地區設定 ID 的資料夾。
2. 在您的地區設定資料夾下建立下列 JSON 檔案:
editor.json
common.json
server.json
services.json
建議您將 en 地區設定檔案用作範本,並相應地編輯這些檔案。這可確保您將英文值作為後援選項。
3. \ThingWorxOrchestration\modules\db_seed 下,編輯 localizations.json 檔案,並新增下列當地語系化權杖:
{
"namespace": <Connector Name>,
"locale": <Locale ID>,
"token": <Source Code Key (Do Not Change)>,
"value": <Translated Value>,
}
例如,如果您要在 "he" 地區設定中為 Google Drive 連接器新增「下載特定檔案」的當地語系化權杖,請新增下列程式碼:
{
"namespace": "google_drive",
"locale": he,
"token": gd_1_usage_html,
"value": <Translated Value>,
}
* 
針對任何 value,請勿變更 token 參數的原始值。
4. 將所有所需權杖新增至 localizations.json 檔案之後,請儲存檔案。
5. 導覽至 \ThingWorxOrchestration\modules\db_seed,啟動指令提示,然後執行下列指令來設定資料庫中的新權杖:
node migrate_collection.js -u <ThingWorx Flow Database User> -p <ThingWorx Flow Database Password>
6. 重新整理您的瀏覽器。
新地區設定可在 ThingWorx Flow 中找到。