web: start implementing translation in JS

This commit is contained in:
Jens Langhammer
2020-12-01 09:46:59 +01:00
parent 0231bcf685
commit a777ecc933
9 changed files with 25 additions and 17 deletions

10
web/src/django.d.ts vendored Normal file
View File

@ -0,0 +1,10 @@
declare module 'django' {
export = django;
}
declare namespace django {
function gettext(name: string): string;
function ngettext(singular: string, plural: string, count: number): string;
function gettext_noop(msgid: string): string;
function pgettext(context: string, msgid: string): string;
function interpolate(fmt: string, obj: any, named: boolean): string;
}