Skip to main content

translate

Function translate 

Source
pub fn translate(text: &str) -> String
Expand description

現在の言語設定で定義されているテキストを取得する。

参照する言語設定のセクションはビルドしたプラグインのファイル名になります。 translate_strictと異なり、テキストにnull byteが含まれている場合は元のテキストを返却します。