Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/support zh #2

Merged
merged 2 commits into from
Dec 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: lint

on:
pull_request:
branches:
- main

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '20'
- uses: pnpm/action-setup@v4
with:
version: '8.5.0'
run_install: false
- name: Install dependencies
run: pnpm i
- name: Lint
run: pnpm run lint
21 changes: 21 additions & 0 deletions .github/workflows/ninja_i18n.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Ninja i18n action

on: pull_request_target

# explicitly configure permissions, in case your GITHUB_TOKEN workflow permissions are set to read-only in repository settings
permissions:
pull-requests: write # Necessary to comment on PRs
issues: read # Necessary to read issue comments
contents: read # Necessary to access the repo content

jobs:
ninja-i18n:
name: Ninja i18n - GitHub Lint Action
runs-on: ubuntu-latest

steps:
- name: Run Ninja i18n
# @main ensures that the latest version of the action is used
uses: opral/ninja-i18n-action@main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,5 @@ dist-ssr
*.njsproj
*.sln
*.sw?

!project.inlang
48 changes: 48 additions & 0 deletions project.inlang/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"$schema": "https://inlang.com/schema/project-settings",
"sourceLanguageTag": "en",
"languageTags": [
"en",
"ar-SA",
"ca-ES",
"ckb-KU",
"cs-CZ",
"de-DE",
"es-VE",
"eu-ES",
"fa",
"fr-CA",
"fr-FR",
"he",
"hu-HU",
"id-ID",
"it-IT",
"ja-JP",
"ko-KR",
"pl-PL",
"pt-BR",
"pt-PT",
"ru-RU",
"sv-SE",
"th-TH",
"tr-TR",
"uk-UA",
"vi",
"vi-VN",
"zh-CN",
"zh-TW"
],
"modules": [
"https://cdn.jsdelivr.net/npm/@inlang/message-lint-rule-empty-pattern@1/dist/index.js",
"https://cdn.jsdelivr.net/npm/@inlang/message-lint-rule-identical-pattern@1/dist/index.js",
"https://cdn.jsdelivr.net/npm/@inlang/message-lint-rule-without-source@1/dist/index.js",
"https://cdn.jsdelivr.net/npm/@inlang/message-lint-rule-missing-translation@1/dist/index.js"
],
"plugin.inlang.json": {
"pathPattern": "./src/locales/{language}.json",
"variableReferencePattern": [
"{{",
"}}"
]
}
}
Empty file added src/locales/ar-SA.json
Empty file.
Empty file added src/locales/ca-ES.json
Empty file.
Empty file added src/locales/ckb-KU.json
Empty file.
Empty file added src/locales/cs-CZ.json
Empty file.
Empty file added src/locales/de-DE.json
Empty file.
3 changes: 3 additions & 0 deletions src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
"italic": "Italic",
"underline": "Underline"
},
"button": {
"submit": "Submit"
},
"placeholder": "Write something...",
"editor": {
"fontColorDefault": "Default",
Expand Down
Empty file added src/locales/es-VE.json
Empty file.
Empty file added src/locales/eu-ES.json
Empty file.
Empty file added src/locales/fa.json
Empty file.
Empty file added src/locales/fr-CA.json
Empty file.
Empty file added src/locales/fr-FR.json
Empty file.
Empty file added src/locales/he.json
Empty file.
Empty file added src/locales/hu-HU.json
Empty file.
Empty file added src/locales/id-ID.json
Empty file.
Empty file added src/locales/it-IT.json
Empty file.
Empty file added src/locales/ja-JP.json
Empty file.
Empty file added src/locales/ko-KR.json
Empty file.
Empty file added src/locales/pl-PL.json
Empty file.
Empty file added src/locales/pt-BR.json
Empty file.
Empty file added src/locales/pt-PT.json
Empty file.
Empty file added src/locales/ru-RU.json
Empty file.
Empty file added src/locales/sv-SE.json
Empty file.
Empty file added src/locales/th-TH.json
Empty file.
Empty file added src/locales/tr-TR.json
Empty file.
Empty file added src/locales/uk-UA.json
Empty file.
Empty file added src/locales/vi-VN.json
Empty file.
Empty file added src/locales/vi.json
Empty file.
33 changes: 33 additions & 0 deletions src/locales/zh-CN.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"translation": {
"editor": {
"fontColorDefault": "默认",
"fontColorRed": "红色",
"fontColorGreen": "绿色",
"fontColorBlue": "蓝色",
"fontColorYellow": "黄色",
"fontColorOrange": "橙色",
"fontColorPurple": "紫色",
"fontColorPink": "粉色",
"fontColorBrown": "棕色",
"fontColorGray": "灰色",
"backgroundColorDefault": "默认",
"backgroundColorRed": "红色",
"backgroundColorGreen": "绿色",
"backgroundColorBlue": "蓝色",
"backgroundColorYellow": "黄色",
"backgroundColorOrange": "橙色",
"backgroundColorPurple": "紫色",
"backgroundColorPink": "粉色",
"backgroundColorBrown": "棕色",
"backgroundColorGray": "灰色",
"backgroundColorLime": "石灰色",
"backgroundColorAqua": "水蓝色",
"backgroundColor": "背景颜色",
"textColor": "文字颜色",
"heading": "标题 {{level}}",
"paragraph": "段落",
"blockquote": "引用"
}
}
}
Empty file added src/locales/zh-TW.json
Empty file.
Loading