AMUseBot/ai_talks/src/utils/lang.py

76 lines
1.9 KiB
Python
Raw Normal View History

2023-03-22 17:13:02 +01:00
from dataclasses import dataclass
2023-04-16 00:07:54 +02:00
from typing import List # NOQA: UP035
2023-03-22 17:13:02 +01:00
2023-05-21 22:53:02 +02:00
from .constants import AI_ROLE_OPTIONS_EN
2023-04-23 09:38:21 +02:00
2023-03-22 17:13:02 +01:00
@dataclass
class Locale:
ai_role_options: List[str]
2023-04-15 22:25:55 +02:00
ai_role_prefix: str
ai_role_postfix: str
title: str
language: str
lang_code: str
donates: str
donates1: str
donates2: str
chat_placeholder: str
chat_run_btn: str
chat_clear_btn: str
chat_save_btn: str
speak_btn: str
input_kind: str
input_kind_1: str
input_kind_2: str
select_placeholder1: str
select_placeholder2: str
select_placeholder3: str
radio_placeholder: str
radio_text1: str
radio_text2: str
stt_placeholder: str
footer_title: str
footer_option0: str
footer_chat: str
footer_channel: str
2023-04-26 10:02:34 +02:00
tokens_count: str
message_cost: str
total_cost: str
2023-03-22 17:13:02 +01:00
2023-04-23 09:38:21 +02:00
# --- LOCALE SETTINGS ---
2023-04-15 22:25:55 +02:00
en = Locale(
ai_role_options=AI_ROLE_OPTIONS_EN,
ai_role_prefix="You are a female",
ai_role_postfix="Answer as concisely as possible.",
2023-05-21 22:53:02 +02:00
title="AMUsebot",
2023-04-15 22:25:55 +02:00
language="English",
lang_code="en",
donates="Donates",
donates1="Russia",
donates2="World",
chat_placeholder="Start Your Conversation With AI:",
chat_run_btn="Ask",
chat_clear_btn="Clear",
chat_save_btn="Save",
speak_btn="Push to Speak",
input_kind="Input Kind",
input_kind_1="Text",
input_kind_2="Voice [test mode]",
select_placeholder1="Select Model",
select_placeholder2="Select Role",
select_placeholder3="Create Role",
radio_placeholder="Role Interaction",
radio_text1="Select",
radio_text2="Create",
stt_placeholder="To Hear The Voice Of AI Press Play",
footer_title="Support & Feedback",
footer_option0="Chat",
footer_chat="AI Talks Chat",
footer_channel="AI Talks Channel",
2023-04-26 10:02:34 +02:00
tokens_count="Tokens count: ",
message_cost="Message cost: ",
total_cost="Total cost of conversation: ",
2023-04-15 22:25:55 +02:00
)