Installation
npm install --save @types/i18next-ko
Summary
This package contains type definitions for i18next-ko (https://github.com/leMaik/i18next-ko).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/i18next-ko.
index.d.ts
/// <reference types="knockout"/>
import * as i18next from "i18next";
export const i18n: i18next.i18n;
export function init(resourceStore: i18nextkoResourceStore, language: string, ko: KnockoutStatic): void;
export function setLanguage(language: string): void;
export function t(key: string): KnockoutComputed<string>;
export interface i18nextkoResourceStore {
[language: string]: {
translation: {
[key: string]: string;
};
};
}
Additional Details
- Last updated: Tue, 07 Nov 2023 03:09:37 GMT
- Dependencies: @types/knockout, i18next
Credits
These definitions were written by Daniel Waxweiler.