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