From 31be21fdd6cdf483813a3af7271a5f55a9c8b36f Mon Sep 17 00:00:00 2001 From: Yuzu Date: Wed, 29 Jun 2022 22:13:48 +0700 Subject: [PATCH] Add locale for language settings --- locales/en.json | 10 +++++++++- locales/jp.json | 10 +++++++++- locales/th.json | 10 +++++++++- 3 files changed, 27 insertions(+), 3 deletions(-) diff --git a/locales/en.json b/locales/en.json index 3d8173b..889594c 100644 --- a/locales/en.json +++ b/locales/en.json @@ -130,7 +130,7 @@ "settings": { "title": "Settings", "description": "Change how {{BOT_NAME}} behave on **{{GUILD_NAME}}**", - "valid_args": "``Prefix`` ``EnableServiceAnnouncement`` ``ServiceAnnouncementChannel``" + "valid_args": "``Prefix`` ``Language`` ``EnableServiceAnnouncement`` ``ServiceAnnouncementChannel``" }, "settings_prefix": { "info": "Current prefix is {{{PREFIX}}}", @@ -142,6 +142,14 @@ "prefix_updated": "Prefix updated", "prefix_updated_description": "From now onwards, I shall be called by using ``{{PREFIX}}``" }, + "settings_language": { + "info": "Current language is {{LANGUAGE}}", + "info_description": "Provide a new language to change\n**Available languages**: ``{{LANGUAGES}}``", + "language_invalid": "Invalid language", + "language_invalid_description": "The language code is invalid or not supported yet", + "language_updated": "Language updated", + "language_updated_description": "I will be using {{LANGUAGE}} from now on" + }, "ping": { "title": "Network performance", "title_processing": "Measuring network performance ( ◕▿◕ )", diff --git a/locales/jp.json b/locales/jp.json index 41182ab..7f0bcd8 100644 --- a/locales/jp.json +++ b/locales/jp.json @@ -130,7 +130,7 @@ "settings": { "title": "設定", "description": "**{{GUILD_NAME}}**サーバでの{{BOT_NAME}}の動作変更", - "valid_args": "``Prefix`` ``EnableServiceAnnouncement`` ``ServiceAnnouncementChannel``" + "valid_args": "``Prefix`` ``Language`` ``EnableServiceAnnouncement`` ``ServiceAnnouncementChannel``" }, "settings_prefix": { "info": "現在の接頭辞は「{{{PREFIX}}}」です。", @@ -142,6 +142,14 @@ "prefix_updated": "プレフィックスを更新", "prefix_updated_description": "これ以降、私は 「``{{PREFIX}}``」 を使って呼び出されることになります。" }, + "settings_language": { + "info": "現在の言語は{{LANGUAGE}}です", + "info_description": "変更する新しい言語を提供する\n**利用可能な言語**: ``{{LANGUAGES}}``", + "language_invalid": "無効な言語", + "language_invalid_description": "言語コードが無効であるか、まだサポートされていません", + "language_updated": "言語が変更されました", + "language_updated_description": "これからは{{LANGUAGE}}を使います" + }, "ping": { "title": "ネットワークパフォーマンス", "title_processing": "ネットワーク性能の測定 ( ◕▿◕ )", diff --git a/locales/th.json b/locales/th.json index 461aaaf..dc0eecb 100644 --- a/locales/th.json +++ b/locales/th.json @@ -130,7 +130,7 @@ "settings": { "title": "การตั้งค่า", "description": "เปลี่ยนพฤติกรรมของ {{BOT_NAME}} บน **{{GUILD_NAME}}**", - "valid_args": "``Prefix`` ``EnableServiceAnnouncement`` ``ServiceAnnouncementChannel``" + "valid_args": "``Prefix`` ``Language`` ``EnableServiceAnnouncement`` ``ServiceAnnouncementChannel``" }, "settings_prefix": { "info": "คำนำหน้าปัจจุบันคือ {{{PREFIX}}}", @@ -142,6 +142,14 @@ "prefix_updated": "อัปเดตคำนำหน้าแล้ว", "prefix_updated_description": "จากนี้ไป คุณสามารถเรียกฉันโดยใช้ ``{{PREFIX}}`` นะ" }, + "settings_language": { + "info": "ภาษาปัจจุบันตอนนี้คือ {{LANGUAGE}}", + "info_description": "ระบุภาษาใหม่เพื่อเปลี่ยน\n**ภาษาที่ใช้ได้**: ``{{LANGUAGES}}``", + "language_invalid": "ภาษาไม่ถูกต้อง", + "language_invalid_description": "รหัสภาษาไม่ถูกต้องหรือยังไม่รองรับ", + "language_updated": "เปลี่ยนภาษาเรียบร้อย", + "language_updated_description": "ตั้งแต่นี้ไปฉันจะใช้ภาษา {{LANGUAGE}}" + }, "ping": { "title": "ประสิทธิภาพของเครือข่าย", "title_processing": "กำลังวัดประสิทธิภาพของเครือข่าย ( ◕▿◕ )",