i18next-http-middleware 3.9.1 → 3.9.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/cjs/index.d.ts CHANGED
@@ -185,3 +185,34 @@ export class LanguageDetector implements i18next.Module {
185
185
  caches: LanguageDetectorCaches
186
186
  ): void;
187
187
  }
188
+
189
+
190
+ export interface HapiPlugin<TOptions = any> {
191
+ name: string;
192
+ version: string;
193
+ register: (
194
+ server: {
195
+ ext: (
196
+ event: string,
197
+ method: (request: any, h: any) => any
198
+ ) => void;
199
+ },
200
+ options: TOptions & HandleOptions & { i18next?: I18next }
201
+ ) => void;
202
+ }
203
+
204
+ export const hapiPlugin: HapiPlugin;
205
+
206
+ declare const middleware: {
207
+ plugin: typeof plugin;
208
+ hapiPlugin: typeof hapiPlugin;
209
+ koaPlugin: typeof koaPlugin;
210
+ freshPlugin: typeof freshPlugin;
211
+ handle: typeof handle;
212
+ getResourcesHandler: typeof getResourcesHandler;
213
+ missingKeyHandler: typeof missingKeyHandler;
214
+ addRoute: typeof addRoute;
215
+ LanguageDetector: typeof LanguageDetector;
216
+ };
217
+
218
+ export default middleware;
package/esm/index.d.ts CHANGED
@@ -185,3 +185,34 @@ export class LanguageDetector implements i18next.Module {
185
185
  caches: LanguageDetectorCaches
186
186
  ): void;
187
187
  }
188
+
189
+
190
+ export interface HapiPlugin<TOptions = any> {
191
+ name: string;
192
+ version: string;
193
+ register: (
194
+ server: {
195
+ ext: (
196
+ event: string,
197
+ method: (request: any, h: any) => any
198
+ ) => void;
199
+ },
200
+ options: TOptions & HandleOptions & { i18next?: I18next }
201
+ ) => void;
202
+ }
203
+
204
+ export const hapiPlugin: HapiPlugin;
205
+
206
+ declare const middleware: {
207
+ plugin: typeof plugin;
208
+ hapiPlugin: typeof hapiPlugin;
209
+ koaPlugin: typeof koaPlugin;
210
+ freshPlugin: typeof freshPlugin;
211
+ handle: typeof handle;
212
+ getResourcesHandler: typeof getResourcesHandler;
213
+ missingKeyHandler: typeof missingKeyHandler;
214
+ addRoute: typeof addRoute;
215
+ LanguageDetector: typeof LanguageDetector;
216
+ };
217
+
218
+ export default middleware;
package/index.d.ts CHANGED
@@ -185,3 +185,34 @@ export class LanguageDetector implements i18next.Module {
185
185
  caches: LanguageDetectorCaches
186
186
  ): void;
187
187
  }
188
+
189
+
190
+ export interface HapiPlugin<TOptions = any> {
191
+ name: string;
192
+ version: string;
193
+ register: (
194
+ server: {
195
+ ext: (
196
+ event: string,
197
+ method: (request: any, h: any) => any
198
+ ) => void;
199
+ },
200
+ options: TOptions & HandleOptions & { i18next?: I18next }
201
+ ) => void;
202
+ }
203
+
204
+ export const hapiPlugin: HapiPlugin;
205
+
206
+ declare const middleware: {
207
+ plugin: typeof plugin;
208
+ hapiPlugin: typeof hapiPlugin;
209
+ koaPlugin: typeof koaPlugin;
210
+ freshPlugin: typeof freshPlugin;
211
+ handle: typeof handle;
212
+ getResourcesHandler: typeof getResourcesHandler;
213
+ missingKeyHandler: typeof missingKeyHandler;
214
+ addRoute: typeof addRoute;
215
+ LanguageDetector: typeof LanguageDetector;
216
+ };
217
+
218
+ export default middleware;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "i18next-http-middleware",
3
- "version": "3.9.1",
3
+ "version": "3.9.2",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "./cjs/index.js",