Skip to content

Commit

Permalink
feat: ko-kr.vi-vn and fix en-us
Browse files Browse the repository at this point in the history
  • Loading branch information
cstrikeasia committed Dec 3, 2024
1 parent e5bfc29 commit 92d6cea
Show file tree
Hide file tree
Showing 14 changed files with 1,141 additions and 10 deletions.
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ class Plugin {
{ value: 'en-US', text: 'English' },
{ value: 'ja-JP', text: '日本語' },
{ value: 'zh-CN', text: '简体中文' },
{ value: 'zh-Hant', text: '繁體中文' }
{ value: 'zh-Hant', text: '繁體中文' },
{ value: 'ko-KR', text: '한국어' },
{ value: 'vi-VN', text: 'Tiếng Việt' }
];
}

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.0.2",
"version": "1.0.3",
"description": {
"zh_tw": "TREM-Lite Language Plugin"
},
Expand Down
4 changes: 2 additions & 2 deletions lang/en-US/index/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ html[lang="en-US"] {
}

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

.no-eew .info-unit::after {
Expand Down Expand Up @@ -112,7 +112,7 @@ html[lang="en-US"] {
}

.report-box-items .survey .report-loc:before {
content: "Epiccenter under assessment";
content: "Epicenter under assessment";
}

.rts-intenisty-list-text::before {
Expand Down
8 changes: 4 additions & 4 deletions lang/en-US/setting/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ html[lang="en-US"] {
content: "TREM EEW";
}
.trem-eew-description::before {
content: "TREM-EEW is an earthquake early warning message calculated by using TREM-Net observation network. The real-time data is non-public, and the general users can see the effect in the replay (5 minutes after the earthquake) after opening it.";
content: "TREM-EEW is an earthquake early warning message calculated by using TREM-Net observation network. The real-time data is non-public, general users can see the effect in the replay (5 minutes after the earthquake) after.";
}
.other-function-title::before {
content: "Other Function";
Expand Down Expand Up @@ -221,13 +221,13 @@ html[lang="en-US"] {
content: "Sure";
}
.confirm-sure:not(:empty)::after {
content: "s";
content: " s";
}
.confirm-cancel::before {
content: "Cancel";
}
.current:empty:before {
content: "Unset";
content: "Not set";
}

.eew-1::before {
Expand Down Expand Up @@ -301,6 +301,6 @@ html[lang="en-US"] {
}

.setting-option span {
font-weight: unset;
font-weight: Not set;
}
}
2 changes: 1 addition & 1 deletion lang/ja-JP/setting/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ html[lang="ja-JP"] {

.intensity-0::after {
content: "0" !important;
font-size: unset !important;
font-size: Not set !important;
}

.reset-setting + .switch {
Expand Down
155 changes: 155 additions & 0 deletions lang/ko-KR/index/index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,155 @@
@import url("./rwd.css");

html[lang="ko-KR"] {
.version-check-text::before {
content: "새 버전";
}

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

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

.cancel-body span::before {
content: "지진 경보가 해제되었습니다.";
}

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

.no-eew.rts-trigger-middle .info-unit::after {
content: "지진에 취약한 대응 " !important;
}

.no-eew.rts-trigger-high .info-unit::after {
content: "강력한 지진 감지 " !important;
}

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

.eew-alert .info-unit::before {
content: "경고 알림 ";
}

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

.no-eew .info-unit::after {
content: "지진 경보 없음";
}

.info-intensity::after {
content: "최대 강도 추정";
}

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

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

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

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

.intensity-report::before {
content: "강도 보고서";
}

.source-report::before {
content: "지진 진원지 보고서";
}

.earthquake-report::before {
content: "지진 보고서";
}

.tsunami-warning::before {
content: "쓰나미 경보";
}

.earthquake-warning::before {
content: "지진 경보";
}

.report-intensity-text::before {
content: "최대 강도";
}

.web-detection::before {
content: "탐지";
}

.web-report::before {
content: "신고";
}

.report-replay::before {
content: "재생";
}

.report-box-items .survey .report-loc:before {
content: "평가 중인 에픽센터";
}

.rts-intenisty-list-text::before {
content: "진도별 강도 순위";
}

.max-intensity-text::before {
content: "최대 강도";
}

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

.internet-error .title:before {
content: "네트워크 연결 오류";
}

.unstable .title:before {
content: "불안정";
}

.unstable .warning-message-text span {
&:nth-child(1)::before {
content: "지진 활동으로 인해 관측";
}
&:nth-child(2)::before {
content: "지점이 불안정할 수 있습니다";
}
}

.internet-error .warning-message-text span {
&:nth-child(1)::before {
content: "네트워크 연결 오류가 발생했습니다";
}
&:nth-child(2)::before {
content: "나중에 다시 시도하세요.";
}
}
}
70 changes: 70 additions & 0 deletions lang/ko-KR/index/rwd.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
html[lang="ko-KR"] {
.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: "최대 추정" !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/ko-KR/plugin_edit/index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
html[lang="ko-KR"] {
.visual-editor-title:before {
content: "비주얼 편집기";
}
.btn-remove:before {
content: "삭제";
}
.btn-add:before {
content: "항목 추가";
}
.root::before {
content: "새로운 루트 레벨 필드";
}
.json-error:before {
content: "JSON 형식 오류";
}
.yaml-transfer-error:before {
content: "YAML 변환 오류";
}
.yaml-extract-error:before {
content: "YAML 구문 분석 오류";
}
.auto-save-success:before {
content: "자동 저장 성공";
}
.auto-save-error:before {
content: "자동 저장 실패";
}
.load-error:before {
content: "읽기 오류";
}
}
Loading

0 comments on commit 92d6cea

Please sign in to comment.