feat: some asian languages

This commit is contained in:
Artemy 2023-04-11 11:30:11 +03:00
parent 09cbc9fbc3
commit 8737ebc3ad
4 changed files with 137 additions and 0 deletions

1
.gitignore vendored
View file

@ -127,3 +127,4 @@ dist
.pnp.* .pnp.*
notes/ notes/
.vscode/

63
src/localisation/ja.js Normal file
View file

@ -0,0 +1,63 @@
//translated with Google Translate
//if you want to help with translations, please contribute to this project
let ja = {
Notes: "ノート",
Write: "書く",
Chat: "チャット",
Settings: "設定",
About: "だいたい",
Name: "名前",
UserName: "ユーザー名",
User: "ユーザー",
PhotoUrl: "写真の URL",
Url: "URL",
Status: "スターテス",
UserStatus: "ユーザーステータス",
EditPreview: "プレビューでの編集",
EditPreviewWarn:
"コードタグの破損など、元に戻せないテキスト変更を引き起こす可能性があります",
PublicNote: "公開メモ",
PublicNoteTitle: "有効にすると、メモはすべてのユーザーに表示されます",
Interface: "インターフェース",
Language: "言語",
ThirdPartyApi: "サードパーティ API",
OpenAiKey: "OpenAI API キー",
Key: "鍵",
Preview: "プレビュー",
NotePlaceholder:
"あなたのメモはここから始まります。マークダウン、MathJax、GFM を使用できます。",
NoteName: "音名",
Publish: "公開",
Save: "保存",
WriteNote: "記帳",
PubError: "メモの公開エラー",
PubErrorMsg: "不明なエラーのため、ノートは公開されませんでした",
PubErrorMsgNoName: "名前がないため、ノートは公開されませんでした。",
PubErrorMsgNoText: "テキストがないため、ノートは公開されませんでした。",
Back: "戻る",
PubNoteNotExist: "このメモは存在しません",
NoteNotExist: "このメモは存在しません",
Idontexists: "私は存在しません",
PubUrlPlaceholder:
"公開メモを送信するためのリンク。このリンクをクリックすると、メモはサーバーから消え、ローカルに保存されます。",
Delete: "消去",
Open: "開ける",
NoNotesYet: "メモはまだありません",
AIComplete: "継続評価 (AI)",
AdditionalFeatures: "追加機能",
CollabEdit: "共同編集",
Password: "パスワード",
SyncPassword: "パスワードを同期",
CollabEditPassword: "共同編集用パスワード",
BroadcastSync: "別のデバイスからメモ、設定を取得する",
SyncAll: "すべてのデバイスにデータを送信",
Sync: "同期",
Search: "検索",
NoNotesFound: "メモが見つかりません",
LocalNote: "地元",
PublicNote: "公共",
Menu: "メニュー",
};
export default ja;

View file

@ -2,12 +2,16 @@ import ru from "./ru";
import en from "./en"; import en from "./en";
import es from "./es"; import es from "./es";
import eo from "./eo"; import eo from "./eo";
import ja from "./ja";
import zh from "./zh";
let Locales = { let Locales = {
ru, ru,
en, en,
es, es,
eo, eo,
ja,
zh,
}; };
let langChoices = [ let langChoices = [
@ -27,6 +31,14 @@ let langChoices = [
value: "eo", value: "eo",
label: "Esperanto", label: "Esperanto",
}, },
{
value: "ja-JP",
label: "日本語",
},
{
value: "zh-CN",
label: "中国人",
},
]; ];
export { Locales, langChoices }; export { Locales, langChoices };

61
src/localisation/zh.js Normal file
View file

@ -0,0 +1,61 @@
//translated with Google Translate
//if you want to help with translations, please contribute to this project
let zh = {
Notes: "笔记",
Write: "写",
Chat: "聊天",
Settings: "设置",
About: "关于",
Name: "姓名",
UserName: "用户名",
User: "用户",
PhotoUrl: "照片网址",
Url: "网址",
Status: "地位",
UserStatus: "用户状态",
EditPreview: "在预览中编辑",
EditPreviewWarn: "可能导致不可逆转的文本更改,例如破坏代码标签",
PublicNote: "公众号",
PublicNoteTitle: "如果启用,注释将对所有用户可见",
Interface: "界面",
Language: "语言",
ThirdPartyApi: "第三方接口",
OpenAiKey: "OpenAI API 密钥",
Key: "钥匙",
Preview: "预览",
NotePlaceholder: "你的笔记从这里开始。你可以使用 markdown、MathJax 和 GFM。",
NoteName: "笔记名称",
Publish: "发布",
Save: "节省",
WriteNote: "写笔记",
PubError: "发布笔记时出错",
PubErrorMsg: "由于未知错误,笔记未发布",
PubErrorMsgNoName: "注释未发布,因为它没有名称。",
PubErrorMsgNoText: "注释未发布,因为它没有文本。",
Back: "后退",
PubNoteNotExist: "此备注不存在",
NoteNotExist: "此备注不存在",
Idontexists: "我不存在",
PubUrlPlaceholder:
"发送公共笔记的链接。当您单击此链接时,该笔记将从服务器上消失并保存在本地。",
Delete: "删除",
Open: "打开",
NoNotesYet: "还没有笔记",
AIComplete: "继续评级 (AI)",
AdditionalFeatures: "附加功能",
CollabEdit: "协同编辑",
Password: "密码",
SyncPassword: "同步密码",
CollabEditPassword: "协同编辑密码",
BroadcastSync: "从另一台设备获取笔记、设置",
SyncAll: "向所有设备发送数据",
Sync: "同步",
Search: "搜索",
NoNotesFound: "找不到笔记",
LocalNote: "当地的",
PublicNote: "民众",
Menu: "菜单",
};
export default zh;