AMUseBot/src/utils/lang.py

125 lines
4.3 KiB
Python
Raw Normal View History

2023-03-22 17:13:02 +01:00
from dataclasses import dataclass
from typing import List
# Parent data class
@dataclass
class Locale:
ai_role_options: List[str]
ai_role_prefix: str
title: str
language: str
lang_code: str
donates: str
donates1: str
donates2: str
chat_placeholder: str
2023-03-23 22:58:02 +01:00
chat_run_btn: str
chat_clear_btn: str
2023-03-25 00:09:45 +01:00
chat_save_btn: str
2023-03-22 17:13:02 +01:00
select_placeholder1: str
select_placeholder2: str
2023-03-28 02:22:21 +02:00
select_placeholder3: str
2023-04-01 23:37:20 +02:00
radio_placeholder: str
radio_text1: str
radio_text2: str
2023-03-22 17:13:02 +01:00
stt_placeholder: str
2023-03-23 22:58:02 +01:00
footer_title: str
2023-03-23 23:04:10 +01:00
footer_option1: str
footer_option2: str
2023-03-23 22:58:02 +01:00
footer_chat: str
footer_channel: str
2023-03-22 17:13:02 +01:00
# Child data class for English
@dataclass
class EnLocale(Locale):
2023-03-24 00:35:04 +01:00
ai_role_prefix: str = "You are a girl"
2023-03-22 17:13:02 +01:00
title: str = "AI Talks"
language: str = "English"
lang_code: str = "en"
donates: str = "Donates"
donates1: str = "Russia"
donates2: str = "World"
chat_placeholder: str = "Start Your Conversation With AI:"
2023-03-23 22:58:02 +01:00
chat_run_btn: str = "Run"
2023-03-28 00:22:02 +02:00
chat_clear_btn: str = "Clear"
chat_save_btn: str = "Save"
2023-04-01 23:37:20 +02:00
select_placeholder1: str = "Select Model"
select_placeholder2: str = "Select Role"
select_placeholder3: str = "Create Role"
radio_placeholder: str = "Role Interaction"
radio_text1: str = "Select"
radio_text2: str = "Create"
2023-03-27 11:14:24 +02:00
stt_placeholder: str = "To Hear The Voice Of AI Press Play"
2023-03-23 22:58:02 +01:00
footer_title: str = "Support & Feedback"
2023-03-23 23:04:10 +01:00
footer_option1: str = "Info"
footer_option2: str = "Donates"
2023-03-23 22:58:02 +01:00
footer_chat: str = "AI Talks Chat"
footer_channel: str = "AI Talks Channel"
2023-03-22 17:13:02 +01:00
# Child data class for Russian
@dataclass
class RuLocale(Locale):
2023-03-24 00:35:04 +01:00
ai_role_prefix: str = "Вы девушка"
2023-03-22 17:13:02 +01:00
title: str = "Разговорчики с ИИ"
language: str = "Russian"
lang_code: str = "ru"
donates: str = "Поддержать Проект"
donates1: str = "Россия"
donates2: str = "Остальной Мир"
chat_placeholder: str = "Начните Вашу Беседу с ИИ:"
2023-03-23 22:58:02 +01:00
chat_run_btn: str = "Запустить"
2023-03-28 00:22:02 +02:00
chat_clear_btn: str = "Очистить"
chat_save_btn: str = "Сохранить"
2023-04-01 23:37:20 +02:00
select_placeholder1: str = "Выберите Модель"
select_placeholder2: str = "Выберите Роль"
select_placeholder3: str = "Создайте Роль"
radio_placeholder: str = "Взаимодествие с Ролью"
radio_text1: str = "Выбрать"
radio_text2: str = "Создать"
2023-03-22 17:13:02 +01:00
stt_placeholder: str = "Чтобы Услышать ИИ Нажми Кнопку Проигрывателя"
2023-03-23 22:58:02 +01:00
footer_title: str = "Поддержка и Обратная Связь"
2023-03-23 23:04:10 +01:00
footer_option1: str = "Информация"
footer_option2: str = "Задонатить"
2023-03-23 22:58:02 +01:00
footer_chat: str = "Чат Разговорчики с ИИ"
footer_channel: str = "Канал Разговорчики с ИИ"
2023-03-22 17:13:02 +01:00
AI_ROLE_OPTIONS_EN = [
"helpful assistant",
"code assistant",
"code reviewer",
"text improver",
"cinema expert",
"sport expert",
"online games expert",
"food recipes expert",
"English grammar expert",
2023-03-28 02:22:21 +02:00
"friendly and helpful teaching assistant",
"laconic assistant",
2023-03-22 17:13:02 +01:00
"helpful, pattern-following assistant",
2023-03-28 02:22:21 +02:00
"translate corporate jargon into plain English",
2023-03-22 17:13:02 +01:00
]
AI_ROLE_OPTIONS_RU = [
"ассистент, который готов помочь",
"ассистент программиста",
"рецензент кода программиста",
"эксперт по улучшению текста",
"эксперт по кинематографу",
"эксперт в области спорта",
"эксперт в онлайн-играх",
"эксперт по рецептам блюд",
"эксперт по английской грамматике",
"эксперт по русской грамматике",
2023-03-28 02:22:21 +02:00
"дружелюбный и полезный помощник преподавателя",
"лаконичный помощник",
2023-03-22 17:13:02 +01:00
"полезный помощник, следующий шаблонам",
2023-03-28 02:22:21 +02:00
"переводчик корпоративного жаргона на простой русский",
2023-03-22 17:13:02 +01:00
]
en = EnLocale(ai_role_options=AI_ROLE_OPTIONS_EN)
ru = RuLocale(ai_role_options=AI_ROLE_OPTIONS_RU)