Skip to main content
Module

x/dpp_vim/deps.ts>fn.gettext

Dark powered plugin manager for Vim/neovim
Latest
function fn.gettext
import { fn } from "https://deno.land/x/dpp_vim@v0.2.0/deps.ts";
const { gettext } = fn;

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>