Skip to main content
Module

x/denops_std/function/mod.ts>gettext

📚 Standard module for denops.vim
Go to Latest
function gettext
import { gettext } from "https://deno.land/x/denops_std@v6.4.0/function/mod.ts";

Translate String {text} if possible. This is mainly for use in the distributed Vim scripts. When generating message translations the {text} is extracted by xgettext, the translator can add the translated message in the .po file and Vim will lookup the translation when gettext() is called. For {text} double quoted strings are preferred, because xgettext does not understand escaping in single quoted strings.

Parameters

denops: Denops
text: unknown

Returns

Promise<string>