Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/denops_std/function/vim/mod.ts>gettext

📚 Standard module for denops.vim
Go to Latest
function gettext
import { gettext } from "https://deno.land/x/denops_std@v5.1.0/function/vim/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>