Skip to content

Commit

Permalink
feat: id-ID.th-TH and fix some translate
Browse files Browse the repository at this point in the history
  • Loading branch information
cstrikeasia committed Dec 4, 2024
1 parent 289860d commit 8078645
Show file tree
Hide file tree
Showing 18 changed files with 1,213 additions and 77 deletions.
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ class Plugin {
{ value: 'zh-CN', text: '简体中文' },
{ value: 'zh-Hant', text: '繁體中文' },
{ value: 'ko-KR', text: '한국어' },
{ value: 'vi-VN', text: 'Tiếng Việt' }
{ value: 'vi-VN', text: 'Tiếng Việt' },
{ value: 'id-ID', text: 'Bahasa Indonesia' },
{ value: 'th-TH', text: 'ภาษาไทย' },
];
}

Expand Down
2 changes: 1 addition & 1 deletion info.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "language",
"version": "1.1.2",
"version": "1.1.3",
"description": {
"zh_tw": "TREM-Lite Language Plugin"
},
Expand Down
22 changes: 7 additions & 15 deletions lang/en-US/setting/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,6 @@ html[lang="en-US"] {
.block-auto-zoom::before {
content: "Disable Map Auto-zoom";
}
.show-fault-title::before,
.show-fault::before {
content: "Show Fault";
}
.show-fault-description::before {
content: "The map shows the distribution of faults on the main island of Taiwan.";
}
.effects-dong-title::before {
content: "Early Warning";
}
Expand Down Expand Up @@ -140,16 +133,19 @@ html[lang="en-US"] {
content: "Unverified";
}
.loaded-badge::before {
content: "loaded";
content: "Loaded";
}
.unloaded-badge::before {
content: "Unloaded";
}
.success.message-box:before {
content: "Success!";
content: "Operation is successful, please close the setting window and apply it!";
}
.failed.message-box:before {
content: "Failed!";
content: "Operation Failed!";
}
.success-download.message-box:before {
content: "Download is successful, please close the setting window and apply it!";
}
.extended-store:before {
content: "TREM Expanded Store";
Expand Down Expand Up @@ -272,7 +268,7 @@ html[lang="en-US"] {
content: "PGA2 (when an PGA is ";
}
.special-text:before {
content: "200gal";
content: "200 gal";
}
&::after {
content: " or higher)";
Expand Down Expand Up @@ -311,8 +307,4 @@ html[lang="en-US"] {
content: " or higher)";
}
}

.setting-option span {
font-weight: Not set;
}
}
156 changes: 156 additions & 0 deletions lang/id-ID/index/index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,156 @@
@import url("./rwd.css");

html[lang="id-ID"] {
.version-check-text::before {
content: "Versi baru";
}

.info-number {
&:not(:empty)::before {
content: "#";
}
&:not(:empty)::after {
content: "";
}
}

.cancel-title span::before {
content: "Batal";
}

.cancel-body span::before {
content: "Peringatan gempa bumi ini dibatalkan.";
}

.no-eew.rts-trigger-low .info-unit::after {
content: "Rendah " !important;
}

.no-eew.rts-trigger-middle .info-unit::after {
content: "Respons seismik yang lebih lemah " !important;
}

.no-eew.rts-trigger-high .info-unit::after {
content: "Deteksi gempa bumi yang kuat " !important;
}

.eew-warn .info-unit::before {
content: "Peringatan ";
}

.eew-alert .info-unit::before {
content: "Peringatan peringatan ";
}

.info-number-last::after {
content: "(Akhir)" !important;
}

.no-eew .info-unit::after {
content: "Tidak ada peringatan dini gempa bumi";
}

.info-intensity::after {
content: "memperkirakan" !important;
}

.info-nsspe span::before {
content: "NSSPE";
}

.info-mag-text::after,
.report-box-item-wrapper:first-child .report-mag-text::after {
content: "Mag.";
}

.info-depth-text::after,
.report-depth-text::after {
content: "Keda.";
}

.current-station-intensity-text::before {
content: "Intensitas";
}
.current-station-pga-text::before {
content: "PGA";
}

.intensity-report::before {
content: "Laporan Intensitas";
}

.source-report::before {
content: "Laporan hiposenter gempa bumi";
}

.earthquake-report::before {
content: "Laporan gempa bumi";
}

.tsunami-warning::before {
content: "Peringatan tsunami";
}

.earthquake-warning::before {
content: "Peringatan gempa bumi";
}

.report-intensity-text::before {
content: "Intensitas";
}

.web-detection::before {
content: "Deteksi";
}

.web-report::before {
content: "Laporan";
}

.report-replay::before {
content: "Putar ulang";
}

.report-box-items .survey .report-loc:before {
content: "Episentrum yang sedang dikaji";
}

.rts-intenisty-list-text::before {
content: "Intensitas di Seluruh Wilayah berdasarkan peringkat";
font-size: 11px;
}

.max-intensity-text::before {
content: "Intensitas";
}

.max-pga-text::before {
content: "PGA Maks";
}

.internet-error .title:before {
content: "Kesalahan koneksi jaringan";
}

.unstable .title:before {
content: "Tidak stabil";
}

.unstable .warning-message-text span {
&:nth-child(1)::before {
content: "Titik pengamatan mungkin tidak";
}
&:nth-child(2)::before {
content: "stabil karena aktivitas seismik";
}
}

.internet-error .warning-message-text span {
&:nth-child(1)::before {
content: "Kesalahan koneksi jaringan";
}
&:nth-child(2)::before {
content: "silakan coba lagi nanti";
}
}
}
70 changes: 70 additions & 0 deletions lang/id-ID/index/rwd.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
html[lang="id-ID"] {
.report-wrapper.hidden ~ .rts-intensity-list-wrapper {
transform: translateX(219%);
}
.report-wrapper {
& .report-box-item-wrapper:first-child {
.report-intensity-text {
font-size: 12px;
}
}
}
.station-pga-wrapper {
left: 7.1rem;
}
.info-wrapper {
& .info-title-wrapper {
.info-intensity {
font-size: 10px;
}
}
}
.report-wrapper {
& .report-box-item-wrapper:first-child {
& .report-info-box {
& .report-info-item {
.report-loc {
font-size: 24px;
}
}
}
}
}
@media (max-width: 980px) {
.info-intensity::after {
content: "Est. maximum" !important;
}
.report-box-item-wrapper:first-child {
.report-intensity-text {
font-size: 11px !important;
}
}
.report-intensity-val {
height: 40px !important;
width: 43px !important;
}
.rts-intensity-list-wrapper {
width: 130px !important;
}
.current-station-info {
width: 145px !important;
}
.current-station-pga {
width: 190px !important;
}
.max-intensity {
width: 76px;
}
.rts-intensity-list-wrapper {
right: 16.5rem;
}
.report-wrapper.hidden ~ .rts-intensity-list-wrapper {
transform: translateX(206%);
}
.report-box-item-wrapper.survey:first-child {
.report-loc {
font-size: 19px !important;
}
}
}
}
32 changes: 32 additions & 0 deletions lang/id-ID/plugin_edit/index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
html[lang="id-ID"] {
.visual-editor-title:before {
content: "Visual editor";
}
.btn-remove:before {
content: "Delete";
}
.btn-add:before {
content: "Add item";
}
.root::before {
content: "New root level fields";
}
.json-error:before {
content: "JSON format error";
}
.yaml-transfer-error:before {
content: "YAML Conversion Error";
}
.yaml-extract-error:before {
content: "YAML parsing error";
}
.auto-save-success:before {
content: "Auto save successful";
}
.auto-save-error:before {
content: "Auto save Failure";
}
.load-error:before {
content: "Read Error";
}
}
Loading

0 comments on commit 8078645

Please sign in to comment.