@skyra/i18next-backend
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -5,2 +5,13 @@ # Changelog | ||
# [@skyra/i18next-backend@2.0.1](https://github.com/skyra-project/archid-components/compare/@skyra/i18next-backend@2.0.0...@skyra/i18next-backend@2.0.1) - (2022-12-11) | ||
## 🏠 Refactor | ||
- Add select menu classes (#200) ([cbab493](https://github.com/skyra-project/archid-components/commit/cbab493afc198d24226bd626efa80c82379ea36c)) | ||
## 🐛 Bug Fixes | ||
- **i18next-backend:** Fixed types with i18next (#205) ([3c2e140](https://github.com/skyra-project/archid-components/commit/3c2e14053f51548c036bfe6fbb5c2221b4ceb4fe)) | ||
- **deps:** Update all non-major dependencies ([a21a43f](https://github.com/skyra-project/archid-components/commit/a21a43ff6258f6c79d886a2faa57755db6724d88)) | ||
# [@skyra/i18next-backend@2.0.0](https://github.com/skyra-project/archid-components/compare/@skyra/i18next-backend@1.1.0...@skyra/i18next-backend@2.0.0) - (2022-10-23) | ||
@@ -7,0 +18,0 @@ |
import { BackendModule, Services, InitOptions, ReadCallback } from 'i18next'; | ||
import { PathLike } from 'node:fs'; | ||
declare class Backend implements BackendModule<Backend.Options> { | ||
declare class Backend<T = object> implements BackendModule<Backend.Options<T>> { | ||
readonly type = "backend"; | ||
private paths; | ||
private i18nextOptions; | ||
init(_: Services, backendOptions: Backend.Options, i18nextOptions: InitOptions): void; | ||
init(_: Services, backendOptions: Backend.Options<T>, i18nextOptions: InitOptions): void; | ||
read(language: string, namespace: string, callback: ReadCallback): void; | ||
@@ -19,10 +19,10 @@ private readPaths; | ||
declare namespace Backend { | ||
interface Options { | ||
type Options<T = object> = T & { | ||
paths: readonly PathResolvable[]; | ||
} | ||
}; | ||
} | ||
declare type PathResolvable = string | URL | ((language: string, namespace: string) => PathLike); | ||
type PathResolvable = string | URL | ((language: string, namespace: string) => PathLike); | ||
declare module 'i18next' { | ||
interface InitOptions { | ||
backend?: Backend.Options | undefined; | ||
interface InitOptions<T = object> { | ||
backend?: Backend.Options<T> | undefined; | ||
} | ||
@@ -29,0 +29,0 @@ } |
{ | ||
"name": "@skyra/i18next-backend", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "A fast and modern filesystem-based i18next backend for Node.js.", | ||
@@ -25,10 +25,10 @@ "author": "@skyra", | ||
"dependencies": { | ||
"tslib": "^2.4.0" | ||
"tslib": "^2.4.1" | ||
}, | ||
"devDependencies": { | ||
"@favware/cliff-jumper": "^1.8.8", | ||
"@types/node": "^18.8.3", | ||
"i18next": "^22.0.2", | ||
"tsup": "^6.3.0", | ||
"typescript": "^4.8.4" | ||
"@favware/cliff-jumper": "^1.9.0", | ||
"@types/node": "^18.11.13", | ||
"i18next": "^22.4.0", | ||
"tsup": "^6.5.0", | ||
"typescript": "^4.9.4" | ||
}, | ||
@@ -35,0 +35,0 @@ "repository": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
30784
Updatedtslib@^2.4.1