File: i18next.d.ts

package info (click to toggle)
node-i18next 23.7.6-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,780 kB
  • sloc: javascript: 13,315; makefile: 2
file content (24 lines) | stat: -rw-r--r-- 435 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import 'i18next';

declare module 'i18next' {
  interface CustomTypeOptions {
    defaultNS: 'custom';
    fallbackNS: ['fallback', 'fallback2'];
    resources: {
      custom: {
        bar: 'bar';
      };
      fallback: {
        fallbackKey: 'fallback';
      };
      fallback2: {
        anotherFallbackKey: 'fallback2';
      };
      alternate: {
        foobar: {
          barfoo: 'barfoo';
        };
      };
    };
  }
}