Skip to main content
Deno 2 is finally here ๐ŸŽ‰๏ธ
Learn more
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.2.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>