資料架構¶
Weblate 使用 JSON Schema 來定義外部 JSON 檔案的組態。
Weblate 翻譯記憶結構¶
類型 |
陣列 |
||
items |
The Translation Memory Item |
||
類型 |
物件 |
||
屬性 |
|||
|
The String Category |
||
1 是全局的,2 是共享的,10000000+ 是項目特定的,20000000+ 使使用者特定的 |
|||
類型 |
整數 |
||
例子 |
1 |
||
最小 |
0 |
||
預設 |
1 |
||
|
字串源頭 |
||
Filename or component name |
|||
類型 |
字串 |
||
例子 |
test.tmx |
||
專案/組件 |
|||
預設 |
|||
|
The Source String |
||
類型 |
字串 |
||
例子 |
你好 |
||
minLength |
1 |
||
預設 |
|||
|
來源語言 |
||
ISO 639-1 / ISO 639-2 / IETF BCP 47 |
|||
類型 |
字串 |
||
例子 |
en |
||
pattern |
^[^ ]+$ |
||
預設 |
|||
|
目標字串 |
||
類型 |
字串 |
||
例子 |
Ahoj |
||
minLength |
1 |
||
預設 |
|||
|
目標語言 |
||
ISO 639-1 / ISO 639-2 / IETF BCP 47 |
|||
類型 |
字串 |
||
例子 |
cs |
||
pattern |
^[^ ]+$ |
||
預設 |
|||
additionalProperties |
False |
||
definitions |
也參考
Weblate 使用者資料匯出¶
類型 |
物件 |
||||
屬性 |
|||||
|
Basic |
||||
類型 |
物件 |
||||
屬性 |
|||||
|
Username |
||||
類型 |
字串 |
||||
例子 |
管理 |
||||
預設 |
|||||
|
Full name |
||||
類型 |
字串 |
||||
例子 |
Weblate 管理 |
||||
預設 |
|||||
|
|||||
類型 |
字串 |
||||
例子 |
|||||
預設 |
|||||
格式 |
電子信箱 |
||||
|
Date joined |
||||
類型 |
字串 |
||||
例子 |
2019-11-18T18:53:54.862Z |
||||
預設 |
|||||
格式 |
date-time |
||||
additionalProperties |
False |
||||
|
Profile |
||||
類型 |
物件 |
||||
屬性 |
|||||
|
Language |
||||
類型 |
字串 |
||||
例子 |
cs |
||||
pattern |
^[^ ]*$ |
||||
預設 |
|||||
|
Number of suggested strings |
||||
類型 |
整數 |
||||
例子 |
1 |
||||
預設 |
0 |
||||
|
Number of translated strings |
||||
類型 |
整數 |
||||
例子 |
24 |
||||
預設 |
0 |
||||
|
Number of uploaded screenshots |
||||
類型 |
整數 |
||||
例子 |
1 |
||||
預設 |
0 |
||||
|
於儀錶板中隱藏已完成的翻譯 |
||||
類型 |
boolean |
||||
例子 |
False |
||||
預設 |
True |
||||
|
在禪譯模式中顯示第二語言翻譯 |
||||
類型 |
boolean |
||||
例子 |
True |
||||
預設 |
True |
||||
|
Hide source if a secondary translation exists |
||||
類型 |
boolean |
||||
例子 |
False |
||||
預設 |
True |
||||
|
Editor link |
||||
類型 |
字串 |
||||
例子 |
|||||
pattern |
^.*$ |
||||
預設 |
|||||
|
翻譯編輯器模式 |
||||
類型 |
整數 |
||||
例子 |
0 |
||||
預設 |
0 |
||||
|
禪譯編輯模式 |
||||
類型 |
整數 |
||||
例子 |
0 |
||||
預設 |
0 |
||||
|
Special characters |
||||
類型 |
字串 |
||||
例子 |
|||||
pattern |
^.*$ |
||||
預設 |
|||||
|
Theme |
||||
類型 |
字串 |
||||
例子 |
auto |
||||
pattern |
^(auto|dark|light)$ |
||||
預設 |
auto |
||||
|
預設儀錶板檢視 |
||||
類型 |
整數 |
||||
例子 |
1 |
||||
預設 |
0 |
||||
|
預設組件列表 |
||||
預設 |
null |
||||
anyOf |
類型 |
null |
|||
類型 |
整數 |
||||
|
Translated languages |
||||
類型 |
陣列 |
||||
預設 |
|||||
items |
Language code |
||||
類型 |
字串 |
||||
例子 |
cs |
||||
pattern |
^.*$ |
||||
預設 |
|||||
|
Secondary languages |
||||
類型 |
陣列 |
||||
預設 |
|||||
items |
Language code |
||||
類型 |
字串 |
||||
例子 |
sk |
||||
pattern |
^.*$ |
||||
預設 |
|||||
|
Watched projects |
||||
類型 |
陣列 |
||||
預設 |
|||||
items |
Project slug |
||||
類型 |
字串 |
||||
例子 |
weblate |
||||
pattern |
^.*$ |
||||
預設 |
|||||
additionalProperties |
False |
||||
|
稽核日誌 |
||||
類型 |
陣列 |
||||
預設 |
|||||
items |
Items |
||||
類型 |
物件 |
||||
屬性 |
|||||
|
IP address |
||||
anyOf |
類型 |
null |
|||
類型 |
字串 |
||||
例子 |
127.0.0.1 |
||||
pattern |
^.*$ |
||||
預設 |
|||||
|
User agent |
||||
類型 |
字串 |
||||
例子 |
PC / Linux / Firefox 70.0 |
||||
pattern |
^.*$ |
||||
預設 |
|||||
|
Timestamp |
||||
類型 |
字串 |
||||
例子 |
2019-11-18T18:58:30.845Z |
||||
預設 |
|||||
格式 |
date-time |
||||
|
Activity |
||||
類型 |
字串 |
||||
例子 |
login |
||||
pattern |
^.*$ |
||||
預設 |
|||||
additionalProperties |
False |
||||
definitions |
也參考