-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconstants.ts
More file actions
187 lines (182 loc) · 14.8 KB
/
Copy pathconstants.ts
File metadata and controls
187 lines (182 loc) · 14.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
import { SentenceSet, Language } from './types';
export const LANGUAGES: Language[] = ['English', 'French', 'German', 'Chinese'];
// Categorized dictionaries for better organization and expansion
const PHRASE_CATEGORIES = {
Basic: {
English: [
"Hello, how are you doing today?", "Good morning! Did you sleep well?", "It's a pleasure to meet you.", "Thank you so much for your help.", "You're very welcome, anytime.",
"I'm truly sorry about that.", "Excuse me, could you help me for a moment?", "Yes, that would be great, thank you.", "No, thank you, I'm fine for now.", "I'm sorry, I don't quite understand what you mean.",
"Could you please repeat that more slowly?", "What's your name, if you don't mind me asking?", "My name is Alex, nice to meet you.", "I'm originally from New York.", "May I ask how old you are?",
"Where do you live in this area?", "What do you do for a living?", "I'm currently studying at Harvard University.", "I work as a teacher at Lincoln High School.", "Have a wonderful day ahead!",
"How was your weekend?", "I hope you're having a good day.", "It's lovely to see you again.", "Take care of yourself.", "See you soon!"
],
French: [
"Bonjour, comment allez-vous aujourd'hui ?", "Bonjour ! Avez-vous bien dormi ?", "C'est un plaisir de faire votre connaissance.", "Merci beaucoup pour votre aide.", "Je vous en prie, c'est toujours un plaisir.",
"Je suis vraiment désolé pour cela.", "Excusez-moi, pourriez-vous m'aider un instant ?", "Oui, ce serait super, merci.", "Non merci, je vais bien pour le moment.", "Désolé, je ne comprends pas bien ce que vous voulez dire.",
"Pourriez-vous répéter cela plus lentement s'il vous plaît ?", "Comment vous appelez-vous, si je peux me permettre ?", "Je m'appelle Marie, enchanté de vous rencontrer.", "Je viens originairement de Paris.", "Puis-je demander quel âge vous avez ?",
"Où habitez-vous dans ce quartier ?", "Que faites-vous dans la vie ?", "J'étudie actuellement à la Sorbonne.", "Je travaille comme professeur au Lycée Saint-Louis.", "Passez une excellente journée !",
"Comment s'est passé votre week-end ?", "J'espère que vous passez une bonne journée.", "C'est agréable de vous revoir.", "Prenez bien soin de vous.", "À très bientôt !"
],
German: [
"Hallo, wie geht es dir heute?", "Guten Morgen! Hast du gut geschlafen?", "Es ist eine Freude, dich kennenzulernen.", "Vielen Dank für deine Hilfe.", "Sehr gerne, jederzeit.",
"Es tut mir wirklich leid dafür.", "Entschuldigung, könntest du mir kurz helfen?", "Ja, das wäre super, danke.", "Nein danke, mir geht es im Moment gut.", "Es tut mir leid, ich verstehe nicht ganz, was du meinst.",
"Könntest du das bitte langsamer wiederholen?", "Wie heißt du, wenn ich fragen darf?", "Mein Name ist Hans, schön dich kennenzulernen.", "Ich komme ursprünglich aus Berlin.", "Darf ich fragen, wie alt du bist?",
"Wo wohnst du in dieser Gegend?", "Was machst du beruflich?", "Ich studiere derzeit an der LMU München.", "Ich arbeite als Lehrer am Gymnasium München.", "Ich wünsche dir einen wunderschönen Tag!",
"Wie war dein Wochenende?", "Ich hoffe, du hast einen guten Tag.", "Es ist schön, dich wiederzusehen.", "Pass gut auf dich auf.", "Bis bald!"
],
Chinese: [
"你好,你今天怎么样?", "早上好!睡得好吗?", "很高兴认识你。", "非常感谢你的帮助。", "不客气,随时都可以。",
"我对此真的很抱歉。", "打扰一下,你能帮我一下吗?", "好的,那太好了,谢谢。", "不用了,谢谢,我现在很好。", "抱歉,我不太明白你的意思。",
"你能慢一点重复一遍吗?", "你叫什么名字,如果可以问的话?", "我的名字是小明,很高兴认识你。", "我来自北京。", "可以问一下你多大了吗?",
"你住在这个区域的哪里?", "你是做什么工作的?", "我现在在清华大学学习。", "我在北京大学当老师。", "祝你今天过得愉快!",
"你的周末过得怎么样?", "希望你今天过得愉快。", "很高兴再次见到你。", "照顾好自己。", "回头见!"
]
},
Travel: {
English: [
"Where is the nearest train station?", "I need a taxi, please.", "How much is a ticket to the airport?",
"Is this seat taken?", "Could you show me on the map?", "I'm looking for this hotel.",
"What time is the next bus?", "Turn left at the corner.", "Go straight ahead.", "Is it far from here?",
"I would like to rent a car.", "Where can I find a pharmacy?", "Is there a bank nearby?",
"I missed my flight.", "Can I store my luggage here?", "What platform does the train leave from?",
"I need to buy a SIM card.", "Is the Wi-Fi free here?", "The connection is very slow.", "Can I have the password?"
],
French: [
"Où se trouve la gare la plus proche ?", "J'ai besoin d'un taxi, s'il vous plaît.", "Combien coûte un billet pour l'aéroport ?",
"Ce siège est-il pris ?", "Pourriez-vous me montrer sur la carte ?", "Je cherche cet hôtel.",
"À quelle heure est le prochain bus ?", "Tournez à gauche au coin.", "Allez tout droit.", "Est-ce loin d'ici ?",
"Je voudrais louer une voiture.", "Où puis-je trouver une pharmacie ?", "Y a-t-il une banque à proximité ?",
"J'ai raté mon vol.", "Puis-je laisser mes bagages ici ?", "De quel quai part le train ?",
"J'ai besoin d'acheter une carte SIM.", "Le Wi-Fi est-il gratuit ici ?", "La connexion est très lente.", "Puis-je avoir le mot de passe ?"
],
German: [
"Wo ist der nächste Bahnhof?", "Ich brauche ein Taxi, bitte.", "Wie viel kostet ein Ticket zum Flughafen?",
"Ist dieser Platz besetzt?", "Könnten Sie mir das auf der Karte zeigen?", "Ich suche dieses Hotel.",
"Wann fährt der nächste Bus?", "Biegen Sie an der Ecke links ab.", "Gehen Sie geradeaus.", "Ist es weit von hier?",
"Ich möchte ein Auto mieten.", "Wo finde ich eine Apotheke?", "Gibt es eine Bank in der Nähe?",
"Ich habe meinen Flug verpasst.", "Kann ich mein Gepäck hier aufbewahren?", "Von welchem Gleis fährt der Zug ab?",
"Ich muss eine SIM-Karte kaufen.", "Ist das WLAN hier kostenlos?", "Die Verbindung ist sehr langsam.", "Kann ich das Passwort haben?"
],
Chinese: [
"最近的火车站在哪里?", "我需要一辆出租车。", "去机场的票多少钱?",
"这个位子有人吗?", "你能在地图上指给我看吗?", "我在找这家酒店。",
"下一班公共汽车是几点?", "在转角处左转。", "直走。", "离这里远吗?",
"我想租辆车。", "哪里可以找到药店?", "附近有银行吗?",
"我错过了航班。", "我可以在这里寄存行李吗?", "火车从哪个站台出发?",
"我需要买一张SIM卡。", "这里的Wi-Fi免费吗?", "连接速度非常慢。", "能告诉我密码吗?"
]
},
Dining: {
English: [
"I would like to order a black coffee.", "A table for two, please.", "Can I see the menu?",
"Are there any vegetarian options?", "I am allergic to peanuts.", "Is the water drinkable?",
"The food was delicious.", "Can we have the bill, please?", "I'll pay by card.", "Keep the change.",
"What do you recommend?", "I would like it spicy.", "Not too salty, please.", "Can I have more water?",
"Where is the restroom?", "Is service included?", "Can I take this to go?", "Everything was great.",
"This is not what I ordered.", "Could we have some bread?"
],
French: [
"Je voudrais commander un café noir.", "Une table pour deux, s'il vous plaît.", "Puis-je voir le menu ?",
"Y a-t-il des options végétariennes ?", "Je suis allergique aux arachides.", "L'eau est-elle potable ?",
"La nourriture était délicieuse.", "Pouvons-nous avoir l'addition, s'il vous plaît ?", "Je vais payer par carte.", "Gardez la monnaie.",
"Que recommandez-vous ?", "Je le voudrais épicé.", "Pas trop salé, s'il vous plaît.", "Puis-je avoir plus d'eau ?",
"Où sont les toilettes ?", "Le service est-il compris ?", "Puis-je emporter ceci ?", "Tout était super.",
"Ce n'est pas ce que j'ai commandé.", "Pourrions-nous avoir du pain ?"
],
German: [
"Ich möchte einen schwarzen Kaffee bestellen.", "Einen Tisch für zwei Personen, bitte.", "Kann ich die Speisekarte sehen?",
"Gibt es vegetarische Optionen?", "Ich bin allergisch gegen Erdnüsse.", "Ist das Wasser trinkbar?",
"Das Essen war köstlich.", "Die Rechnung, bitte.", "Ich zahle mit Karte.", "Stimmt so.",
"Was empfehlen Sie?", "Ich hätte es gerne scharf.", "Bitte nicht zu salzig.", "Kann ich mehr Wasser haben?",
"Wo ist die Toilette?", "Ist der Service inbegriffen?", "Kann ich das zum Mitnehmen haben?", "Alles war großartig.",
"Das ist nicht das, was ich bestellt habe.", "Könnten wir etwas Brot haben?"
],
Chinese: [
"我想点一杯黑咖啡。", "请给我一张两人的桌子。", "我可以看菜单吗?",
"有素食选择吗?", "我对花生过敏。", "这水可以喝吗?",
"食物非常好吃。", "请买单。", "我刷卡付钱。", "不用找钱了。",
"你有什么推荐的吗?", "我想要辣一点。", "请不要太咸。", "能再给我点水吗?",
"洗手间在哪里?", "包含服务费吗?", "可以打包吗?", "一切都很棒。",
"这不是我点的菜。", "能给我们一些面包吗?"
]
},
Social: {
English: [
"The weather is nice today.", "What a beautiful sunset!", "Do you have any hobbies?",
"I love learning new languages.", "What kind of music do you like?", "Have you seen any good movies?",
"I am very happy today.", "Don't worry about it.", "That sounds like fun!", "I'm so tired.",
"Let's go for a walk.", "I need to rest for a while.", "What are your plans for the weekend?",
"I agree with you.", "I'm not so sure about that.", "That's a great idea!", "I'll call you later.",
"Send me a message.", "It was nice talking to you.", "See you later!"
],
French: [
"Il fait beau aujourd'hui.", "Quel beau coucher de soleil !", "Avez-vous des passe-temps ?",
"J'adore apprendre de nouvelles langues.", "Quel genre de musique aimez-vous ?", "Avez-vous vu de bons films ?",
"Je suis très heureux aujourd'hui.", "Ne vous inquiétez pas pour ça.", "Ça a l'air amusant !", "Je suis tellement fatigué.",
"Allons nous promener.", "J'ai besoin de me reposer un peu.", "Quels sont vos projets pour le week-end ?",
"Je suis d'accord avec vous.", "Je n'en suis pas si sûr.", "C'est une excellente idée !", "Je t'appellerai plus tard.",
"Envoie-moi un message.", "C'était sympa de discuter avec vous.", "À plus tard !"
],
German: [
"Das Wetter ist heute schön.", "Was für ein schöner Sonnenuntergang!", "Hast du irgendwelche Hobbys?",
"Ich liebe es, neue Sprachen zu lernen.", "Welche Musik magst du?", "Hast du in letzter Zeit gute Filme gesehen?",
"Ich bin heute sehr glücklich.", "Mach dir keine Sorgen.", "Das klingt nach Spaß!", "Ich bin so müde.",
"Lass uns spazieren gehen.", "Ich muss mich eine Weile ausruhen.", "Was sind deine Pläne für das Wochenende?",
"Ich stimme dir zu.", "Da bin ich mir nicht so sicher.", "Das ist eine großartige Idee!", "Ich rufe dich später an.",
"Schick mir eine Nachricht.", "Es war schön, mit dir zu sprechen.", "Bis später!"
],
Chinese: [
"今天天气很好。", "多么美丽的日落啊!", "你有什么爱好吗?",
"我喜欢学习新的语言。", "你喜欢什么样的音乐?", "你最近看过什么好电影吗?",
"我今天很高兴。", "别担心。", "那听起来很有趣!", "我太累了。",
"我们去散散步吧。", "我需要休息一会儿。", "你周末有什么计划?",
"我同意你的看法。", "我不太确定。", "那是个好主意!", "我稍后给你打电话。",
"给我发个信息。", "很高兴和你聊天。", "回头见!"
]
},
Emergency: {
English: [
"Help! Call the police!", "I need a doctor immediately.", "I lost my passport.",
"My phone was stolen.", "Is there a hospital nearby?", "I feel sick.", "It hurts here.",
"I am lost. Can you help me?", "Where is the embassy?", "Please speak slowly.",
"I need an interpreter.", "It's an emergency!", "Fire! Get out!", "Stop thief!",
"I've been in an accident.", "My car broke down.", "Can I use your phone?",
"I need to contact my family.", "I'm allergic to this medicine.", "Stay calm."
],
French: [
"Au secours ! Appelez la police !", "J'ai besoin d'un médecin immédiatement.", "J'ai perdu mon passeport.",
"Mon téléphone a été volé.", "Y a-t-il un hôpital à proximité ?", "Je me sens mal.", "Ça fait mal ici.",
"Je suis perdu. Pouvez-vous m'aider ?", "Où se trouve l'ambassade ?", "S'il vous plaît, parlez lentement.",
"J'ai besoin d'un interprète.", "C'est une urgence !", "Au feu ! Sortez !", "Au voleur !",
"J'ai eu un accident.", "Ma voiture est en panne.", "Puis-je utiliser votre téléphone ?",
"J'ai besoin de contacter ma famille.", "Je suis allergique à ce médicament.", "Restez calme."
],
German: [
"Hilfe! Rufen Sie die Polizei!", "Ich brauche sofort einen Arzt.", "Ich habe meinen Reisepass verloren.",
"Mein Handy wurde gestohlen.", "Gibt es ein Krankenhaus in der Nähe?", "Mir ist schlecht.", "Es tut hier weh.",
"Ich habe mich verlaufen. Können Sie mir helfen?", "Wo ist die Botschaft?", "Bitte sprechen Sie langsam.",
"Ich brauche einen Dolmetscher.", "Es ist ein Notfall!", "Feuer! Raus hier!", "Haltet den Dieb!",
"Ich hatte einen Unfall.", "Mein Auto ist liegen geblieben.", "Kann ich Ihr Telefon benutzen?",
"Ich muss meine Familie kontaktieren.", "Ich bin allergisch gegen dieses Medikament.", "Bleiben Sie ruhig."
],
Chinese: [
"救命!报警!", "我立刻需要医生。", "我的护照丢了。",
"我的手机被偷了。", "附近有医院吗?", "我觉得不舒服。", "这里疼。",
"我迷路了。你能帮我吗?", "大使馆在哪里?", "请慢点说。",
"我需要一个翻译。", "这是紧急情况!", "着火了!出去!", "抓小偷!",
"我出车祸了。", "我的车抛锚了。", "我可以用一下你的电话吗?",
"我需要联系我的家人。", "我对这种药过敏。", "保持冷静。"
]
}
};
// Flatten the categorized structure into the SENTENCES export expected by App.tsx
export const SENTENCES: SentenceSet = LANGUAGES.reduce((acc, lang) => {
acc[lang] = Object.values(PHRASE_CATEGORIES).flatMap(cat => cat[lang]);
return acc;
}, {} as SentenceSet);
export const LANGUAGE_CODES: Record<Language, string> = {
English: 'en-US',
French: 'fr-FR',
German: 'de-DE',
Chinese: 'zh-CN'
};