From 06c0185a6541b5118b4832d38f713ec4b041f910 Mon Sep 17 00:00:00 2001 From: ysteen Date: Wed, 1 Jan 2025 14:23:08 +0900 Subject: [PATCH 1/2] Added korean translation files new file: frontend/src/locales/ko_KR/collection.json new file: frontend/src/locales/ko_KR/common.json new file: frontend/src/locales/ko_KR/emptyStates.json new file: frontend/src/locales/ko_KR/home.json new file: frontend/src/locales/ko_KR/login.json new file: frontend/src/locales/ko_KR/platform.json new file: frontend/src/locales/ko_KR/play.json new file: frontend/src/locales/ko_KR/rom.json new file: frontend/src/locales/ko_KR/scan.json new file: frontend/src/locales/ko_KR/settings.json modified: frontend/src/stores/language.ts --- frontend/src/locales/ko_KR/collection.json | 16 ++++++ frontend/src/locales/ko_KR/common.json | 32 ++++++++++++ frontend/src/locales/ko_KR/emptyStates.json | 5 ++ frontend/src/locales/ko_KR/home.json | 3 ++ frontend/src/locales/ko_KR/login.json | 7 +++ frontend/src/locales/ko_KR/platform.json | 32 ++++++++++++ frontend/src/locales/ko_KR/play.json | 7 +++ frontend/src/locales/ko_KR/rom.json | 55 +++++++++++++++++++++ frontend/src/locales/ko_KR/scan.json | 24 +++++++++ frontend/src/locales/ko_KR/settings.json | 48 ++++++++++++++++++ frontend/src/stores/language.ts | 1 + 11 files changed, 230 insertions(+) create mode 100644 frontend/src/locales/ko_KR/collection.json create mode 100644 frontend/src/locales/ko_KR/common.json create mode 100644 frontend/src/locales/ko_KR/emptyStates.json create mode 100644 frontend/src/locales/ko_KR/home.json create mode 100644 frontend/src/locales/ko_KR/login.json create mode 100644 frontend/src/locales/ko_KR/platform.json create mode 100644 frontend/src/locales/ko_KR/play.json create mode 100644 frontend/src/locales/ko_KR/rom.json create mode 100644 frontend/src/locales/ko_KR/scan.json create mode 100644 frontend/src/locales/ko_KR/settings.json diff --git a/frontend/src/locales/ko_KR/collection.json b/frontend/src/locales/ko_KR/collection.json new file mode 100644 index 000000000..8014dc4f5 --- /dev/null +++ b/frontend/src/locales/ko_KR/collection.json @@ -0,0 +1,16 @@ +{ + "search-collection": "모음집에서 찾기", + "add-collection": "모음집 추가", + "edit-collection": "모음집 수정", + "name": "이름", + "description": "설명", + "owner": "소유자", + "public": "공개", + "public-desc": "공개 (모든 사람이 볼 수 있음)", + "private": "비공개", + "private-desc": "비공개 (나만 볼 수 있음)", + "danger-zone": "위험 구역", + "delete-collection": "모음집 삭제", + "removing-collection-1": "모음집", + "removing-collection-2": "을(를) RomM에서 삭제합니다. 정말 삭제하시겠습니까?" +} diff --git a/frontend/src/locales/ko_KR/common.json b/frontend/src/locales/ko_KR/common.json new file mode 100644 index 000000000..3615e55fd --- /dev/null +++ b/frontend/src/locales/ko_KR/common.json @@ -0,0 +1,32 @@ +{ + "platform": "플랫폼", + "platforms": "플랫폼", + "platforms-n": "{n}가지 플랫폼 | {n}가지 플랫폼", + "firmware": "펌웨어", + "games-n": "게임 {n}개 | 게임 {n}개", + "collection": "모음집", + "collections": "모음집", + "save": "세이브", + "saves": "세이브", + "saves-n": "세이브 {n}개 | 세이브 {n}개", + "state": "저장 상태", + "states": "저장 상태", + "states-n": "저장 상태 {n}개 | 저장 상태 {n}개", + "screenshots-n": "스크린샷 {n}개 | 스크린샷 {n}개", + "search": "검색", + "filter": "필터", + "add": "추가", + "upload": "업로드", + "edit": "수정", + "cancel": "취소", + "confirm": "확인", + "apply": "적용", + "update": "업데이트", + "create": "생성", + "profile": "프로필", + "user-interface": "사용자 인터페이스", + "library-management": "라이브러리 관리", + "administration": "유저 관리", + "logout": "로그아웃", + "name": "이름" +} diff --git a/frontend/src/locales/ko_KR/emptyStates.json b/frontend/src/locales/ko_KR/emptyStates.json new file mode 100644 index 000000000..c47407881 --- /dev/null +++ b/frontend/src/locales/ko_KR/emptyStates.json @@ -0,0 +1,5 @@ +{ + "404-title": "페이지 찾을 수 없음", + "404-subtitle": "찾으려고 하는 페이지가 존재하지 않습니다", + "search-for-games": "모든 기종에서 게임 찾기" +} diff --git a/frontend/src/locales/ko_KR/home.json b/frontend/src/locales/ko_KR/home.json new file mode 100644 index 000000000..64758bbbb --- /dev/null +++ b/frontend/src/locales/ko_KR/home.json @@ -0,0 +1,3 @@ +{ + "recently-added": "최근에 추가됨" +} diff --git a/frontend/src/locales/ko_KR/login.json b/frontend/src/locales/ko_KR/login.json new file mode 100644 index 000000000..25bcd9a9b --- /dev/null +++ b/frontend/src/locales/ko_KR/login.json @@ -0,0 +1,7 @@ +{ + "username": "아이디", + "password": "패스워드", + "login": "로그인", + "login-oidc": "{oidc}로 로그인", + "or": "또는" +} diff --git a/frontend/src/locales/ko_KR/platform.json b/frontend/src/locales/ko_KR/platform.json new file mode 100644 index 000000000..57a81ba0d --- /dev/null +++ b/frontend/src/locales/ko_KR/platform.json @@ -0,0 +1,32 @@ +{ + "search-platform": "플랫폼 검색", + "upload-roms": "롬 업로드", + "filesystem-folder-name": "저장소 폴더 이름", + "category": "분류", + "generation": "세대", + "family": "계열", + "settings": "설정", + "cover-style": "커버 스타일", + "old-squared-cases": "옛날 정사각 케이스", + "danger-zone": "위험 구역", + "delete-platform": "플랫폼 지우기", + "removing-platform-1": "플랫폼", + "removing-platform-2": "] 을(를) RomM에서 지웁니다. 정말 삭제하시겠습니까?", + "show-firmwares": "펌웨어/바이오스 보여주기", + "filter-gallery": "갤러리 필터", + "show-unmatched": "DB 대응 안됨", + "show-matched": "DB 대응 됨", + "show-favourites": "즐겨찾기", + "show-duplicates": "중복", + "genre": "장르", + "genres": "장르", + "franchise": "프랜차이즈", + "collection": "모음집", + "company": "개발사", + "age-rating": "연령 제한", + "status": "플레이 상태", + "reset-filters": "필터 초기화", + "active-multi-select": "다중선택 활성화", + "change-view": "배열 방식 변경", + "no-firmware-found": "펌웨어 없음" +} diff --git a/frontend/src/locales/ko_KR/play.json b/frontend/src/locales/ko_KR/play.json new file mode 100644 index 000000000..2366d40a9 --- /dev/null +++ b/frontend/src/locales/ko_KR/play.json @@ -0,0 +1,7 @@ +{ + "full-screen": "전체 화면", + "play": "실행", + "reset-session": "세션 초기화", + "back-to-game-details": "게임 설명으로 가기", + "back-to-gallery": "갤러리로 가기" +} diff --git a/frontend/src/locales/ko_KR/rom.json b/frontend/src/locales/ko_KR/rom.json new file mode 100644 index 000000000..ade44f0dc --- /dev/null +++ b/frontend/src/locales/ko_KR/rom.json @@ -0,0 +1,55 @@ +{ + "manual-match": "수동으로 DB 대응", + "by": "분류", + "results-found": "검색 결과", + "select-cover-image": "커버 이미지 선택", + "rename-file-part1": "파일을 {source}에서의 이름과 동일하게 맞춥니다", + "rename-file-part2": "파일 이름을", + "rename-file-part3": "", + "rename-file-part4": "에서 다음으로 변경합니다:", + "rename-file-part5": "파일 이름 태그에는 영향을 주지 않습니다", + "no-metadata-source": "메타데이터 DB 연동 안됨", + "edit-rom": "수정", + "filename": "파일 이름", + "foldername": "폴더 이름", + "summary": "요약", + "unmatch-rom": "DB 대응 해제", + "add-to-fav": "즐겨찾기에 추가", + "remove-from-fav": "즐겨찾기에서 제거", + "add-to-collection": "모음집에 추가", + "adding-to-collection-part1": "", + "adding-to-collection-part2": "개의 롬을 모음집에 추가합니다", + "remove-from-collection-part1": "", + "remove-from-collection-part2": "개의 롬을 모음집에서 제거합니다", + "delete-rom": "삭제", + "copy-link": "다운로드 링크 복사", + "cant-copy-link": "링크를 클립보드에 복사할 수 없습니다. 수동으로 복사합니다", + "details": "자세히", + "personal": "개인", + "version": "버전", + "default": "기본으로", + "set-as-default": "기본 롬으로 설정", + "file": "파일", + "files": "파일", + "info": "정보", + "size": "크기", + "tags": "태그", + "genres": "장르", + "franchises": "프랜차이즈", + "collections": "시리즈", + "companies": "개발사", + "age-rating": "연령 제한", + "no-saves-found": "세이브 없음", + "no-states-found": "저장 상태 없음", + "status": "상태", + "backlogged": "나중에 플레이", + "now-playing": "현재 플레이중", + "hidden": "숨김", + "rating": "평가", + "difficulty": "난이도", + "completion": "완료율", + "my-notes": "개인 노트", + "public-notes": "공개 노트", + "additional-content": "추가 컨텐츠", + "related-content": "관련 컨텐츠" +} diff --git a/frontend/src/locales/ko_KR/scan.json b/frontend/src/locales/ko_KR/scan.json new file mode 100644 index 000000000..a9dac9ea2 --- /dev/null +++ b/frontend/src/locales/ko_KR/scan.json @@ -0,0 +1,24 @@ +{ + "scan": "스캔", + "abort": "중지", + "manage-library": "라이브러리 관리", + "metadata-sources": "메타데이터 DB", + "api-key-missing": "API 키가 없거나 올바르지 않습니다", + "scan-options": "스캔 옵션", + "select-one-source": "표지와 메타데이터로 라이브러리를 꾸미고 싶으시면 메타데이터 DB를 하나 이상 선택해주세요", + "new-platforms": "새 플랫폼", + "new-platforms-desc": "새 플랫폼에서만 스캔 (가장 빠름)", + "quick-scan": "빠른 스캔", + "quick-scan-desc": "새 파일만 검색", + "unidentified-games": "확인되지 않은 게임", + "unidentified-games-desc": "메타데이터와 대응되지 않은 게임들만 스캔", + "partial-metadata": "일부 메타데이터", + "partial-metadata-desc": "일부 메타데이터와 대응된 게임들 스캔", + "complete-rescan": "모두 재스캔", + "complete-rescan-desc": "모든 플랫폼과 파일 재스캔 (가장 느림)", + "no-new-roms": "새로운/수정된 롬이 없습니다", + "platforms-scanned-n": "플랫폼: {n}개 스캔됨", + "platforms-scanned-with-details": "플랫폼: {n_platforms}개 스캔됨, 새로운 플랫폼: {n_added_platforms}개, 확인된 플랫폼:{n_identified_platforms}개", + "roms-scanned-n": "롬: {n}개 스캔됨", + "roms-scanned-with-details": "롬: {n_roms}개 스캔됨, 새로운 롬: {n_added_roms}개, 확인된 롬: {n_identified_roms}개" +} diff --git a/frontend/src/locales/ko_KR/settings.json b/frontend/src/locales/ko_KR/settings.json new file mode 100644 index 000000000..119d9b42e --- /dev/null +++ b/frontend/src/locales/ko_KR/settings.json @@ -0,0 +1,48 @@ +{ + "username": "아이디", + "password": "패스워드", + "role": "역할", + "language": "언어", + "theme": "테마", + "theme-auto": "자동", + "theme-dark": "다크", + "theme-light": "라이트", + "interface": "인터페이스", + "home": "홈", + "gallery": "갤러리", + "show-recently-added": "최근 추가된 롬 보이기", + "show-recently-added-desc": "홈페이지에 최근에 추가됨 페이지를 보여줍니다", + "recently-added-as-grid": "최근에 추가된 롬을 그리드 뷰로", + "recently-added-as-grid-desc": "홈페이지에 최근에 추가된 롬을 그리드 뷰로 보여줍니다", + "show-platforms": "플랫폼 보이기", + "show-platforms-desc": "홈페이지에 플랫폼 페이지를 보여줍니다", + "show-platforms-as-grid": "플랫폼을 그리드 뷰로", + "show-platforms-as-grid-desc": "홈페이지에 플랫폼들을 그리드 뷰로 보여줍니다", + "show-collections": "모음집 보이기", + "show-collections-desc": "홈페이지에 모음집 페이지를 보여줍니다", + "show-collections-as-grid": "모음집을 그리드 뷰로", + "show-collections-as-grid-desc": "홈페이지에 모음집들을 그리드 뷰로 보여줍니다", + "group-roms": "롬 묶음", + "group-roms-desc": "갤러리에서 같은 롬의 다른 버전들을 하나로 묶습니다", + "show-siblings": "파생롬 보이기", + "show-siblings-desc": "\"롬 묶음\" 옵션이 활성화되었을 때 파생롬의 개수를 갤러리에서 보여줍니다", + "show-regions": "지역 보이기", + "show-regions-desc": "갤러리에서 지역을 보여줍니다", + "show-languages": "언어 보이기", + "show-languages-desc": "갤러리에서 언어를 보여줍니다", + "show-status": "상태 보이기", + "show-status-desc": "갤러리에서 상태 아이콘을 보여줍니다(플레이중, 완료됨 등)", + "platforms-bindings": "플랫폼 연결", + "platforms-versions": "플랫폼 버전", + "excluded": "제외됨", + "excluded-single-rom-files": "단일 롬 파일", + "excluded-single-rom-extensions": "단일 롬 확장자", + "excluded-multi-rom-files": "멀티 롬 파일", + "excluded-multi-rom-parts-files": "멀티 롬 부분 파일", + "excluded-multi-rom-parts-extensions": "멀티 롬 부분 확장자", + "folder-name": "폴더 이름", + "romm-platform": "RomM 플랫폼", + "platform-version": "플랫폼 버전", + "main-platform": "메인 플랫폼", + "join-discord": "디스코드에 참여" +} diff --git a/frontend/src/stores/language.ts b/frontend/src/stores/language.ts index 221686254..c8f362f19 100644 --- a/frontend/src/stores/language.ts +++ b/frontend/src/stores/language.ts @@ -12,6 +12,7 @@ export default defineStore("language", { { value: "pt_BR", name: "Português (Brasil)" }, { value: "es_ES", name: "Español (España)" }, { value: "zh_CN", name: "简体中文 (中国)" }, + { value: "ko_KR", name: "한국어 (대한민국)" }, ].sort((a, b) => a.name.localeCompare(b.name)), }), From 08b466836467a16e88592d892ba23e14795581ab Mon Sep 17 00:00:00 2001 From: zurdi Date: Thu, 2 Jan 2025 10:46:58 +0000 Subject: [PATCH 2/2] fix: order platforms at home view --- frontend/src/components/Home/Platforms.vue | 6 ++++-- frontend/src/locales/es_ES/home.json | 2 +- frontend/src/locales/ko_KR/home.json | 3 ++- frontend/src/stores/platforms.ts | 4 +++- 4 files changed, 10 insertions(+), 5 deletions(-) diff --git a/frontend/src/components/Home/Platforms.vue b/frontend/src/components/Home/Platforms.vue index f7168a2ab..900eae25a 100644 --- a/frontend/src/components/Home/Platforms.vue +++ b/frontend/src/components/Home/Platforms.vue @@ -5,10 +5,12 @@ import storePlatforms from "@/stores/platforms"; import { isNull } from "lodash"; import { views } from "@/utils"; import { useI18n } from "vue-i18n"; +import { storeToRefs } from "pinia"; // Props const { t } = useI18n(); -const platforms = storePlatforms(); +const platformsStore = storePlatforms(); +const { filledPlatforms } = storeToRefs(platformsStore); const gridPlatforms = isNull(localStorage.getItem("settings.gridPlatforms")) ? true : localStorage.getItem("settings.gridPlatforms") === "true"; @@ -21,7 +23,7 @@ const gridPlatforms = isNull(localStorage.getItem("settings.gridPlatforms")) no-gutters > value.reduce((count, p) => count + p.rom_count, 0), filledPlatforms: ({ allPlatforms: all }) => - all.filter((p) => p.rom_count > 0), + all + .filter((p) => p.rom_count > 0) + .sort((a, b) => a.display_name.localeCompare(b.display_name)), filteredPlatforms: ({ allPlatforms: all, searchText }) => all .filter(