feat: add Korean i18n & README (#130)

* Fixed the issue where the hue value set in config was not applied

* Create README.ko-KR.md

* Update README.ja-JP.md

* Update README.zh-CN.md

* Update README.md

* Update README.ko-KR.md

* Update translation.ts

* Create ko_KR.ts

* Update ko_KR.ts

* Update ko_KR.ts

* Update ko_KR.ts

* Update setting-utils.ts

* Update config.ts

* ko_KR to ko

* fix

* Delete package-lock.json

* Update .gitignore

* Update .gitignore
This commit is contained in:
Dev_Nergis 2024-07-21 04:15:41 +09:00 committed by GitHub
parent 2622aabe07
commit 743d8dd9c2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
8 changed files with 103 additions and 4 deletions

4
.gitignore vendored
View File

@ -21,3 +21,7 @@ pnpm-debug.log*
.DS_Store .DS_Store
.vercel .vercel
package-lock.json
bun.lockb
yarn.lock

View File

@ -2,7 +2,7 @@
[Astro](https://astro.build)で構築された静的ブログテンプレート [Astro](https://astro.build)で構築された静的ブログテンプレート
[**🖥️ライブデモ (Vercel)**](https://fuwari.vercel.app)   /   [**🌏中文**](https://github.com/saicaca/fuwari/blob/main/README.zh-CN.md)   /   [**🌏日本語**](https://github.com/saicaca/fuwari/blob/main/README.ja-JP.md)   /   [**📦旧Hexoバージョン**](https://github.com/saicaca/hexo-theme-vivia) [**🖥️ライブデモ (Vercel)**](https://fuwari.vercel.app)   /   [**🌏中文**](https://github.com/saicaca/fuwari/blob/main/README.zh-CN.md)   /   [**🌏日本語**](https://github.com/saicaca/fuwari/blob/main/README.ja-JP.md)   /   [**🌏한국어 README**](https://github.com/saicaca/fuwari/blob/main/README.ko.md)   /   [**📦旧Hexoバージョン**](https://github.com/saicaca/hexo-theme-vivia)
![Preview Image](https://raw.githubusercontent.com/saicaca/resource/main/fuwari/home.png) ![Preview Image](https://raw.githubusercontent.com/saicaca/resource/main/fuwari/home.png)

54
README.ko.md Normal file
View File

@ -0,0 +1,54 @@
# 🍥Fuwari
[Astro](https://astro.build)로 구축된 정적 블로그 템플릿입니다.
[**🖥️미리보기 (Vercel)**](https://fuwari.vercel.app)   /   [**🌏中文 README**](https://github.com/saicaca/fuwari/blob/main/README.zh-CN.md)   /   [**🌏日本語 README**](https://github.com/saicaca/fuwari/blob/main/README.ja-JP.md)   /   [**🌏한국어 README**](https://github.com/saicaca/fuwari/blob/main/README.ko.md)   /   [**📦Old Hexo Version**](https://github.com/saicaca/hexo-theme-vivia)
![Preview Image](https://raw.githubusercontent.com/saicaca/resource/main/fuwari/home.png)
## ✨ 특징
- [x] [Astro](https://astro.build) 및 [Tailwind CSS](https://tailwindcss.com)로 구축됨
- [x] 부드러운 애니메이션 및 페이지 전환
- [x] 라이트 모드 / 다크 모드
- [x] 사용자 정의 가능한 테마 색상 및 배너
- [x] 반응형 디자인
- [ ] 댓글
- [x] 검색
- [ ] 목차
## 🚀 사용하는 방법
1. 이 템플릿에서 [새 저장소를 생성](https://github.com/saicaca/fuwari/generate)하거나 이 저장소를 포크하세요.
2. 블로그를 로컬에서 편집하려면 저장소를 복제하고 `pnpm install``pnpm add sharp`를 실행하여 종속성을 설치하세요.
- 아직 [pnpm](https://pnpm.io)을 설치하지 않았다면 `npm install -g pnpm`을 실행하여 [pnpm](https://pnpm.io)을 설치하세요.
3. 블로그를 사용자 정의하려면 `src/config.ts` 구성 파일을 편집하세요.
4. `pnpm new-post <filename>`을 실행하여 새 게시물을 만들고 `src/content/posts/`에서 편집하세요.
5. [가이드](https://docs.astro.build/en/guides/deploy/)에 따라 블로그를 Vercel, Netlify, GitHub 페이지 등에 배포하세요. 배포하기 전에 `astro.config.mjs`에서 사이트 구성을 편집해야 합니다.
## ⚙️ 게시물의 머리말 설정
```yaml
---
title: 내 첫 블로그 게시물
published: 2023-09-09
description: 내 새로운 Astro 블로그의 첫 번째 게시물입니다!
image: /images/cover.jpg
tags: [푸, 바, 오]
category: 앞-끝
draft: false
---
```
## 🧞 명령어
모든 명령어는 프로젝트 최상단, 터미널에서 실행됩니다:
| Command | Action |
|:------------------------------------|:-------------------------------------------------|
| `pnpm install` AND `pnpm add sharp` | 종속성을 설치합니다. |
| `pnpm dev` | `localhost:4321`에서 로컬 개발 서버를 시작합니다. |
| `pnpm build` | `./dist/`에 프로덕션 사이트를 구축합니다. |
| `pnpm preview` | 배포하기 전에 로컬에서 빌드 미리보기 |
| `pnpm new-post <filename>` | 새 게시물 작성 |
| `pnpm astro ...` | `astro add`, `astro check`와 같은 CLI 명령어 실행 |
| `pnpm astro --help` | Astro CLI를 사용하여 도움 받기 |

View File

@ -2,7 +2,7 @@
A static blog template built with [Astro](https://astro.build). A static blog template built with [Astro](https://astro.build).
[**🖥Live Demo (Vercel)**](https://fuwari.vercel.app)&nbsp;&nbsp;&nbsp;/&nbsp;&nbsp;&nbsp;[**🌏中文 README**](https://github.com/saicaca/fuwari/blob/main/README.zh-CN.md)&nbsp;&nbsp;&nbsp;/&nbsp;&nbsp;&nbsp;[**🌏日本語 README**](https://github.com/saicaca/fuwari/blob/main/README.ja-JP.md)&nbsp;&nbsp;&nbsp;/&nbsp;&nbsp;&nbsp;[**📦Old Hexo Version**](https://github.com/saicaca/hexo-theme-vivia) [**🖥Live Demo (Vercel)**](https://fuwari.vercel.app)&nbsp;&nbsp;&nbsp;/&nbsp;&nbsp;&nbsp;[**🌏中文 README**](https://github.com/saicaca/fuwari/blob/main/README.zh-CN.md)&nbsp;&nbsp;&nbsp;/&nbsp;&nbsp;&nbsp;[**🌏日本語 README**](https://github.com/saicaca/fuwari/blob/main/README.ja-JP.md)&nbsp;&nbsp;&nbsp;/&nbsp;&nbsp;&nbsp;[**🌏한국어 README**](https://github.com/saicaca/fuwari/blob/main/README.ko.md)&nbsp;&nbsp;&nbsp;/&nbsp;&nbsp;&nbsp;[**📦Old Hexo Version**](https://github.com/saicaca/hexo-theme-vivia)
![Preview Image](https://raw.githubusercontent.com/saicaca/resource/main/fuwari/home.png) ![Preview Image](https://raw.githubusercontent.com/saicaca/resource/main/fuwari/home.png)

View File

@ -2,7 +2,7 @@
基于 [Astro](https://astro.build) 开发的静态博客模板。 基于 [Astro](https://astro.build) 开发的静态博客模板。
[**🖥在线预览Vercel**](https://fuwari.vercel.app)&nbsp;&nbsp;&nbsp;/&nbsp;&nbsp;&nbsp;[**🌏English README**](https://github.com/saicaca/fuwari)&nbsp;&nbsp;&nbsp;/&nbsp;&nbsp;&nbsp;[**🌏日本語 README**](https://github.com/saicaca/fuwari/blob/main/README.ja-JP.md)&nbsp;&nbsp;&nbsp;/&nbsp;&nbsp;&nbsp;[**📦旧 Hexo 版本**](https://github.com/saicaca/hexo-theme-vivia) [**🖥在线预览Vercel**](https://fuwari.vercel.app)&nbsp;&nbsp;&nbsp;/&nbsp;&nbsp;&nbsp;[**🌏English README**](https://github.com/saicaca/fuwari)&nbsp;&nbsp;&nbsp;/&nbsp;&nbsp;&nbsp;[**🌏日本語 README**](https://github.com/saicaca/fuwari/blob/main/README.ja-JP.md)&nbsp;&nbsp;&nbsp;/&nbsp;&nbsp;&nbsp;[**🌏한국어 README**](https://github.com/saicaca/fuwari/blob/main/README.ko.md)&nbsp;&nbsp;&nbsp;/&nbsp;&nbsp;&nbsp;[**📦旧 Hexo 版本**](https://github.com/saicaca/hexo-theme-vivia)
![Preview Image](https://raw.githubusercontent.com/saicaca/resource/main/fuwari/home.png) ![Preview Image](https://raw.githubusercontent.com/saicaca/resource/main/fuwari/home.png)

View File

@ -9,7 +9,7 @@ import { LinkPreset } from './types/config'
export const siteConfig: SiteConfig = { export const siteConfig: SiteConfig = {
title: 'Fuwari', title: 'Fuwari',
subtitle: 'Demo Site', subtitle: 'Demo Site',
lang: 'en', // 'en', 'zh_CN', 'zh_TW', 'ja' lang: 'en', // 'en', 'zh_CN', 'zh_TW', 'ja', 'ko'
themeColor: { themeColor: {
hue: 250, // Default hue for the theme color, from 0 to 360. e.g. red: 0, teal: 200, cyan: 250, pink: 345 hue: 250, // Default hue for the theme color, from 0 to 360. e.g. red: 0, teal: 200, cyan: 250, pink: 345
fixed: false, // Hide the theme color picker for visitors fixed: false, // Hide the theme color picker for visitors

38
src/i18n/languages/ko.ts Normal file
View File

@ -0,0 +1,38 @@
import Key from '../i18nKey'
import type { Translation } from '../translation'
export const ko: Translation = {
[Key.home]: '홈',
[Key.about]: '소개',
[Key.archive]: '아카이브',
[Key.search]: '검색',
[Key.tags]: '태그',
[Key.categories]: '카테고리',
[Key.recentPosts]: '최근 게시물',
[Key.comments]: '댓글',
[Key.untitled]: '제목 없음',
[Key.uncategorized]: '분류되지 않음',
[Key.noTags]: '태그 없음',
[Key.wordCount]: '단어',
[Key.wordsCount]: '단어',
[Key.minuteCount]: '분',
[Key.minutesCount]: '분',
[Key.postCount]: '게시물',
[Key.postsCount]: '게시물',
[Key.themeColor]: '테마 색상',
[Key.lightMode]: '밝은 모드',
[Key.darkMode]: '어두운 모드',
[Key.systemMode]: '시스템 모드',
[Key.more]: '더 보기',
[Key.author]: '저자',
[Key.publishedAt]: '게시일',
[Key.license]: '라이선스',
}

View File

@ -4,6 +4,7 @@ import { en } from './languages/en'
import { ja } from './languages/ja' import { ja } from './languages/ja'
import { zh_CN } from './languages/zh_CN' import { zh_CN } from './languages/zh_CN'
import { zh_TW } from './languages/zh_TW' import { zh_TW } from './languages/zh_TW'
import { ko } from './languages/ko'
export type Translation = { export type Translation = {
[K in I18nKey]: string [K in I18nKey]: string
@ -20,6 +21,8 @@ const map: { [key: string]: Translation } = {
zh_tw: zh_TW, zh_tw: zh_TW,
ja: ja, ja: ja,
ja_jp: ja, ja_jp: ja,
ko: ko,
ko_kr: ko
} }
export function getTranslation(lang: string): Translation { export function getTranslation(lang: string): Translation {