Skip to content

Commit

Permalink
Updated languages.js
Browse files Browse the repository at this point in the history
  • Loading branch information
veloman-yunkan committed Mar 9, 2024
1 parent bc9b5a0 commit fa9ebf5
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 7 deletions.
1 change: 1 addition & 0 deletions static/i18n_resources_list.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ skin/i18n/skr-arab.json
skin/i18n/sl.json
skin/i18n/sq.json
skin/i18n/sv.json
skin/i18n/sw.json
skin/i18n/te.json
skin/i18n/test.json
skin/i18n/tr.json
Expand Down
9 changes: 7 additions & 2 deletions static/skin/languages.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const uiLanguages = [
{
"iso_code": "dag",
"self_name": "Silimiinsili",
"translation_count": 24
"translation_count": 48
},
{
"iso_code": "de",
Expand All @@ -42,7 +42,7 @@ const uiLanguages = [
{
"iso_code": "fi",
"self_name": "suomi",
"translation_count": 22
"translation_count": 23
},
{
"iso_code": "fr",
Expand Down Expand Up @@ -169,6 +169,11 @@ const uiLanguages = [
"self_name": "Svenska",
"translation_count": 57
},
{
"iso_code": "sw",
"self_name": "Kiswahili",
"translation_count": 57
},
{
"iso_code": "te",
"self_name": "ఇంగ్లీషు",
Expand Down
15 changes: 10 additions & 5 deletions test/server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ const ResourceCollection resources200Compressible{
// TODO: implement cache management of i18n resources
//{ STATIC_CONTENT, "/ROOT%23%3F/skin/i18n/test.json?cacheid=unknown" },
{ DYNAMIC_CONTENT, "/ROOT%23%3F/skin/languages.js" },
{ STATIC_CONTENT, "/ROOT%23%3F/skin/languages.js?cacheid=5be77f5c" },
{ STATIC_CONTENT, "/ROOT%23%3F/skin/languages.js?cacheid=355e4885" },

{ DYNAMIC_CONTENT, "/ROOT%23%3F/catalog/search" },

Expand Down Expand Up @@ -289,7 +289,7 @@ R"EXPECTEDRESULT( href="/ROOT%23%3F/skin/kiwix.css?cacheid=2158fad9"
<meta name="msapplication-config" content="/ROOT%23%3F/skin/favicon/browserconfig.xml?cacheid=f29a7c4a">
<script type="text/javascript" src="./skin/polyfills.js?cacheid=a0e0343d"></script>
<script type="module" src="/ROOT%23%3F/skin/i18n.js?cacheid=071abc9a" defer></script>
<script type="text/javascript" src="/ROOT%23%3F/skin/languages.js?cacheid=5be77f5c" defer></script>
<script type="text/javascript" src="/ROOT%23%3F/skin/languages.js?cacheid=355e4885" defer></script>
<script src="/ROOT%23%3F/skin/isotope.pkgd.min.js?cacheid=2e48d392" defer></script>
<script src="/ROOT%23%3F/skin/iso6391To3.js?cacheid=ecde2bb3"></script>
<script type="text/javascript" src="/ROOT%23%3F/skin/index.js?cacheid=ce19da2a" defer></script>
Expand Down Expand Up @@ -323,7 +323,7 @@ R"EXPECTEDRESULT( <link type="text/css" href="./skin/kiwix.css?cacheid=2158fa
<link type="text/css" href="./skin/autoComplete/css/autoComplete.css?cacheid=ef30cd42" rel="Stylesheet" />
<script type="text/javascript" src="./skin/polyfills.js?cacheid=a0e0343d"></script>
<script type="module" src="./skin/i18n.js?cacheid=071abc9a" defer></script>
<script type="text/javascript" src="./skin/languages.js?cacheid=5be77f5c" defer></script>
<script type="text/javascript" src="./skin/languages.js?cacheid=355e4885" defer></script>
<script type="text/javascript" src="./skin/viewer.js?cacheid=5fc4badf" defer></script>
<script type="text/javascript" src="./skin/autoComplete/autoComplete.min.js?cacheid=1191aaaf"></script>
const blankPageUrl = root + "/skin/blank.html?cacheid=6b1fa032";
Expand Down Expand Up @@ -1152,7 +1152,7 @@ R"EXPECTEDRESPONSE(const uiLanguages = [
{
"iso_code": "dag",
"self_name": "Silimiinsili",
"translation_count": 24
"translation_count": 48
},
{
"iso_code": "de",
Expand All @@ -1172,7 +1172,7 @@ R"EXPECTEDRESPONSE(const uiLanguages = [
{
"iso_code": "fi",
"self_name": "suomi",
"translation_count": 22
"translation_count": 23
},
{
"iso_code": "fr",
Expand Down Expand Up @@ -1299,6 +1299,11 @@ R"EXPECTEDRESPONSE(const uiLanguages = [
"self_name": "Svenska",
"translation_count": 57
},
{
"iso_code": "sw",
"self_name": "Kiswahili",
"translation_count": 57
},
{
"iso_code": "te",
"self_name": "ఇంగ్లీషు",
Expand Down

0 comments on commit fa9ebf5

Please sign in to comment.