Fluent 格式

在 4.8 版被加入.

備註

Support for this format is under development. Some features might not yet be available and the behavior can change between releases. Feedback from testing is welcome.

Fluent is a monolingual text format that focuses on asymmetric localization: a simple string in one language can map to a complex multi-variant translation in another language.

範例檔案:

hello = Ahoj "světe"!\n
orangutan = Orangutan má %d banán.\n
try = Zkus Weblate na <https://demo.weblate.org/>!\n
thanks = Děkujeme za použití Weblate.
支援的功能

副檔名

.ftl

語言能力

單語言

支援複數

No

支援描述

Yes

支援解釋

No

Supports context

No

Supports location

No

Supports flags

No

API 識別碼

fluent

支援唯讀字串

No

Check flags added by this format

Fluent 來源語法, Fluent 翻譯語法, Fluent 部分, Fluent 引用, Fluent 來源內部 HTML, Fluent 翻譯 inner HTML, ignore-xml-tags, ignore-xml-invalid

Weblate 配置

典型的 Weblate 組件配置

檔案遮罩

locales/*/messages.ftl

單語言基底語言檔案

locales/en/messages.ftl

新翻譯的範本

空白

檔案格式

Fluent 檔案