Skip to content

Commit f1b3e89

Browse files
authored
Add support for Vietnamese (#2131)
2 parents 8d0519c + 4712e0f commit f1b3e89

13 files changed

Lines changed: 170 additions & 2 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Deployments in production:
1212
* https://hin.elimu.ai - Hindi database content
1313
* https://tgl.elimu.ai - Tagalog database content
1414
* https://tha.elimu.ai - Thai database content
15+
* https://vie.elimu.ai - Vietnamese database content
1516
* https://eng.elimu.ai - English database content
1617

1718
[<kbd>![](https://github.com/elimu-ai/webapp/assets/15718174/32f3c339-aacc-4dc1-9692-c9435bc63d57)</kbd>](https://hin.elimu.ai)

pom-dependency-tree.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ai.elimu:webapp:war:2.5.91-SNAPSHOT
1+
ai.elimu:webapp:war:2.5.92-SNAPSHOT
22
+- com.github.elimu-ai:model:jar:model-2.0.97:compile
33
| \- com.google.code.gson:gson:jar:2.13.0:compile
44
| \- com.google.errorprone:error_prone_annotations:jar:2.37.0:compile
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "https://jetty.org/configure_10_0.dtd">
3+
4+
<Configure class="org.eclipse.jetty.webapp.WebAppContext">
5+
<Set name="contextPath">/</Set>
6+
<Set name="war"><SystemProperty name="jetty.base"/>/webapps/webapp.war</Set>
7+
<Set name="virtualHosts">
8+
<Array type="java.lang.String">
9+
<Item>vie.elimu.ai</Item>
10+
</Array>
11+
</Set>
12+
<Call name="setAttribute">
13+
<Arg>env</Arg>
14+
<Arg>PROD</Arg>
15+
</Call>
16+
<Call name="setAttribute">
17+
<Arg>content_language</Arg>
18+
<Arg>VIE</Arg>
19+
</Call>
20+
<Call name="setAttribute">
21+
<Arg>jdbc_url</Arg>
22+
<Arg>jdbc:mysql://localhost/webapp-VIE?useUnicode=true&amp;characterEncoding=utf8</Arg>
23+
</Call>
24+
<Call name="setAttribute">
25+
<Arg>jdbc_username</Arg>
26+
<Arg>**********</Arg>
27+
</Call>
28+
<Call name="setAttribute">
29+
<Arg>jdbc_password</Arg>
30+
<Arg>**********</Arg>
31+
</Call>
32+
<Call name="setAttribute">
33+
<Arg>discord_api_secret</Arg>
34+
<Arg>**********</Arg>
35+
</Call>
36+
<Call name="setAttribute">
37+
<Arg>github_api_secret</Arg>
38+
<Arg>**********</Arg>
39+
</Call>
40+
<Call name="setAttribute">
41+
<Arg>discord_webhook_url</Arg>
42+
<Arg>**********</Arg>
43+
</Call>
44+
<Call name="setAttribute">
45+
<Arg>github_lfs_token</Arg>
46+
<Arg>**********</Arg>
47+
</Call>
48+
</Configure>

src/main/webapp/WEB-INF/jsp/content/letter-sound/create.jsp

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,22 @@
177177

178178
<div class="divider" style="margin: 1em 0;"></div>
179179
</c:if>
180+
<c:if test="${applicationScope.configProperties['content.language'] == 'VIE'}">
181+
Vietnamese resources:
182+
<ol style="list-style-type: inherit;">
183+
<li>
184+
<a href="https://en.wikipedia.org/wiki/Help:IPA/Vietnamese" target="_blank">Wikipedia: Help:IPA/Vietnamese</a>
185+
</li>
186+
<li>
187+
<a href="https://en.wikipedia.org/wiki/Vietnamese_alphabet" target="_blank">Wikipedia: Vietnamese alphabet</a>
188+
</li>
189+
<li>
190+
<a href="https://www.omniglot.com/writing/vietnamese.htm" target="_blank">Omniglot: Vietnamese (tiếng việt / 㗂越)</a>
191+
</li>
192+
</ol>
193+
194+
<div class="divider" style="margin: 1em 0;"></div>
195+
</c:if>
180196

181197
General resources:
182198
<ol style="list-style-type: inherit;">

src/main/webapp/WEB-INF/jsp/content/letter-sound/edit.jsp

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,22 @@
325325

326326
<div class="divider" style="margin: 1em 0;"></div>
327327
</c:if>
328+
<c:if test="${applicationScope.configProperties['content.language'] == 'VIE'}">
329+
Vietnamese resources:
330+
<ol style="list-style-type: inherit;">
331+
<li>
332+
<a href="https://en.wikipedia.org/wiki/Help:IPA/Vietnamese" target="_blank">Wikipedia: Help:IPA/Vietnamese</a>
333+
</li>
334+
<li>
335+
<a href="https://en.wikipedia.org/wiki/Vietnamese_alphabet" target="_blank">Wikipedia: Vietnamese alphabet</a>
336+
</li>
337+
<li>
338+
<a href="https://www.omniglot.com/writing/vietnamese.htm" target="_blank">Omniglot: Vietnamese (tiếng việt / 㗂越)</a>
339+
</li>
340+
</ol>
341+
342+
<div class="divider" style="margin: 1em 0;"></div>
343+
</c:if>
328344

329345
General resources:
330346
<ol style="list-style-type: inherit;">

src/main/webapp/WEB-INF/jsp/content/letter/create.jsp

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,22 @@
7474

7575
<div class="divider" style="margin: 1em 0;"></div>
7676
</c:if>
77+
<c:if test="${applicationScope.configProperties['content.language'] == 'VIE'}">
78+
Vietnamese resources:
79+
<ol style="list-style-type: inherit;">
80+
<li>
81+
<a href="https://en.wikipedia.org/wiki/Help:IPA/Vietnamese" target="_blank">Wikipedia: Help:IPA/Vietnamese</a>
82+
</li>
83+
<li>
84+
<a href="https://en.wikipedia.org/wiki/Vietnamese_alphabet" target="_blank">Wikipedia: Vietnamese alphabet</a>
85+
</li>
86+
<li>
87+
<a href="https://www.omniglot.com/writing/vietnamese.htm" target="_blank">Omniglot: Vietnamese (tiếng việt / 㗂越)</a>
88+
</li>
89+
</ol>
90+
91+
<div class="divider" style="margin: 1em 0;"></div>
92+
</c:if>
7793

7894
General resources:
7995
<ol style="list-style-type: inherit;">

src/main/webapp/WEB-INF/jsp/content/letter/edit.jsp

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,22 @@
188188

189189
<div class="divider" style="margin: 1em 0;"></div>
190190
</c:if>
191+
<c:if test="${applicationScope.configProperties['content.language'] == 'VIE'}">
192+
Vietnamese resources:
193+
<ol style="list-style-type: inherit;">
194+
<li>
195+
<a href="https://en.wikipedia.org/wiki/Help:IPA/Vietnamese" target="_blank">Wikipedia: Help:IPA/Vietnamese</a>
196+
</li>
197+
<li>
198+
<a href="https://en.wikipedia.org/wiki/Vietnamese_alphabet" target="_blank">Wikipedia: Vietnamese alphabet</a>
199+
</li>
200+
<li>
201+
<a href="https://www.omniglot.com/writing/vietnamese.htm" target="_blank">Omniglot: Vietnamese (tiếng việt / 㗂越)</a>
202+
</li>
203+
</ol>
204+
205+
<div class="divider" style="margin: 1em 0;"></div>
206+
</c:if>
191207

192208
General resources:
193209
<ol style="list-style-type: inherit;">

src/main/webapp/WEB-INF/jsp/content/number/create.jsp

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,19 @@
125125
</ol>
126126
</div>
127127
</c:if>
128+
<c:if test="${applicationScope.configProperties['content.language'] == 'VIE'}">
129+
<div class="card-panel deep-purple lighten-5">
130+
Vietnamese resources:
131+
<ol style="list-style-type: inherit;">
132+
<li>
133+
<a href="https://en.wikipedia.org/wiki/Vietnamese_numerals" target="_blank">Vietnamese numerals - Wikipedia</a>
134+
</li>
135+
<li>
136+
<a href="https://www.omniglot.com/language/numbers/vietnamese.htm" target="_blank">Numbers in Vietnamese - Omniglot</a>
137+
</li>
138+
</ol>
139+
</div>
140+
</c:if>
128141

129142
<div class="card-panel deep-purple lighten-5">
130143
General resources:

src/main/webapp/WEB-INF/jsp/content/number/edit.jsp

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,19 @@
291291
</ol>
292292
</div>
293293
</c:if>
294+
<c:if test="${applicationScope.configProperties['content.language'] == 'VIE'}">
295+
<div class="card-panel deep-purple lighten-5">
296+
Vietnamese resources:
297+
<ol style="list-style-type: inherit;">
298+
<li>
299+
<a href="https://en.wikipedia.org/wiki/Vietnamese_numerals" target="_blank">Vietnamese numerals - Wikipedia</a>
300+
</li>
301+
<li>
302+
<a href="https://www.omniglot.com/language/numbers/vietnamese.htm" target="_blank">Numbers in Vietnamese - Omniglot</a>
303+
</li>
304+
</ol>
305+
</div>
306+
</c:if>
294307

295308
<div class="card-panel deep-purple lighten-5">
296309
General resources:

src/main/webapp/WEB-INF/jsp/content/storybook/create.jsp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,9 @@
8787
<li>
8888
<a href="https://bookdash.org/books/" target="_blank">Book Dash</a>
8989
</li>
90+
<li>
91+
<a href="https://www.earlylearningresourcenetwork.org/books" target="_blank">Early Learning Resource Network</a>
92+
</li>
9093
</ol>
9194
</div>
9295
</content:aside>

0 commit comments

Comments
 (0)