資料架構

Weblate 使用 JSON Schema 來定義外部 JSON 檔案的組態。

Weblate 翻譯記憶結構

https://weblate.org/schemas/weblate-memory.schema.json

類型

陣列

items

The Translation Memory Item

類型

物件

屬性

  • category

The String Category

1 是全局的,2 是共享的,10000000+ 是項目特定的,20000000+ 使使用者特定的

類型

整數

例子

1

最小

0

預設

1

  • 來源

字串源頭

Filename or component name

類型

字串

例子

test.tmx

專案/組件

預設

  • 來源

The Source String

類型

字串

例子

你好

minLength

1

預設

  • source_language

來源語言

ISO 639-1 / ISO 639-2 / IETF BCP 47

類型

字串

例子

en

pattern

^[^ ]+$

預設

  • target

目標字串

類型

字串

例子

Ahoj

minLength

1

預設

  • target_language

目標語言

ISO 639-1 / ISO 639-2 / IETF BCP 47

類型

字串

例子

cs

pattern

^[^ ]+$

預設

additionalProperties

False

definitions

Weblate 使用者資料匯出

https://weblate.org/schemas/weblate-userdata.schema.json

類型

物件

屬性

  • 基本

Basic

類型

物件

屬性

  • username

Username

類型

字串

例子

管理

預設

  • full_name

Full name

類型

字串

例子

Weblate 管理

預設

  • email

E-mail

類型

字串

例子

noreply@example.com

預設

格式

電子信箱

  • date_joined

Date joined

類型

字串

例子

2019-11-18T18:53:54.862Z

預設

格式

date-time

additionalProperties

False

  • 個人檔案

Profile

類型

物件

屬性

  • language

Language

類型

字串

例子

cs

pattern

^[^ ]*$

預設

  • suggested

Number of suggested strings

類型

整數

例子

1

預設

0

  • translated

Number of translated strings

類型

整數

例子

24

預設

0

  • uploaded

Number of uploaded screenshots

類型

整數

例子

1

預設

0

  • hide_completed

於儀錶板中隱藏已完成的翻譯

類型

boolean

例子

False

預設

True

  • secondary_in_zen

在禪譯模式中顯示第二語言翻譯

類型

boolean

例子

True

預設

True

  • hide_source_secondary

Hide source if a secondary translation exists

類型

boolean

例子

False

預設

True

  • editor_link

Editor link

類型

字串

例子

pattern

^.*$

預設

  • translate_mode

翻譯編輯器模式

類型

整數

例子

0

預設

0

  • zen_mode

禪譯編輯模式

類型

整數

例子

0

預設

0

  • special_chars

Special characters

類型

字串

例子

pattern

^.*$

預設

  • theme

Theme

類型

字串

例子

auto

pattern

^(auto|dark|light)$

預設

auto

  • 儀錶板_檢視

預設儀錶板檢視

類型

整數

例子

1

預設

0

  • dashboard_component_list

預設組件列表

預設

null

anyOf

類型

null

類型

整數

  • 語言

Translated languages

類型

陣列

預設

items

Language code

類型

字串

例子

cs

pattern

^.*$

預設

  • secondary_languages

Secondary languages

類型

陣列

預設

items

Language code

類型

字串

例子

sk

pattern

^.*$

預設

  • 已關注

Watched projects

類型

陣列

預設

items

Project slug

類型

字串

例子

weblate

pattern

^.*$

預設

additionalProperties

False

  • 稽核日誌

稽核日誌

類型

陣列

預設

items

Items

類型

物件

屬性

  • address

IP address

anyOf

類型

null

類型

字串

例子

127.0.0.1

pattern

^.*$

預設

  • user_agent

User agent

類型

字串

例子

PC / Linux / Firefox 70.0

pattern

^.*$

預設

  • 時間標記

Timestamp

類型

字串

例子

2019-11-18T18:58:30.845Z

預設

格式

date-time

  • activity

Activity

類型

字串

例子

login

pattern

^.*$

預設

additionalProperties

False

definitions