Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Sharkey
Manage
Activity
Members
Labels
Plan
Issues
338
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
23
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TransFem.org
Sharkey
Commits
a3473079
Unverified
Commit
a3473079
authored
6 years ago
by
syuilo
Committed by
GitHub
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Create translate.ja.md
parent
2d7525b2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/translate.ja.md
+27
-0
27 additions, 0 deletions
docs/translate.ja.md
with
27 additions
and
0 deletions
docs/translate.ja.md
0 → 100644
+
27
−
0
View file @
a3473079
Misskeyの翻訳
============
新たな言語を追加するには
----------------------
/locales 内に既にある何らかの言語ファイルをコピーして、追加したい言語名にリネームして編集してください。
Misskey内の未翻訳箇所を見つけたら
-------------------------------
1.
Misskeyのソースコード内から未翻訳箇所を探してください。
-
例えば
`src/client/app/mobile/views/pages/home.vue`
で未翻訳箇所を見つけたとします。
2.
未翻訳箇所を
`%i18n:@hoge%`
のような形式の文字列に置換してください。
-
`hoge`
は実際にはその場に適したわかりやすい(英語の)名前にしてください。
-
例えば未翻訳箇所が「タイムライン」というテキストだった場合、
`%i18n:@timeline%`
のようにします。
3.
/locales 内にあるそれぞれの言語ファイルを開き、1.で見つけたファイル名(パス)のキーが存在するか確認し、無ければ作成してください。
-
パスの
`src/client/app/`
は省略してください。
-
例えば、今回の例では
`src/client/app/mobile/views/pages/home.vue`
の未翻訳箇所を修正したいので、キーは
`mobile/views/pages/home.vue`
になります。
4.
そのキーの直下に2.で置換した
`hoge`
の部分をキーとし、翻訳後のテキストを値とするプロパティを追加します。
-
例えば、今回の例で言うと
`locales/ja.yml`
に
`timeline: "タイムライン"`
、
`locales/en.yml`
に
`timeline: "Timeline"`
を追加します。
5.
完了です!
詳しくは、
[
このコミット
](
https://github.com/syuilo/misskey/commit/10f6d5980fa7692ccb45fbc5f843458b69b7607c
)
などを参考にしてください。
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment