0.0.5 • Published 3 years ago
@borert/missing-locales-core v0.0.5
@borert/missing-locales-core
A utility for finding missing keys in locales.
Installation
npm install @borert/missing-locales-core
yarn add @borert/missing-locales-core
pnpm add @borert/missing-locales-core
Usage
import missingLocales from "@borert/missing-locales-core";
const missingKeys = missingLocales({ path: "src/locales" });
console.log(missingKeys);
// [
// {
// key
// namespace
// locale
// path
// },
// ...
// ]
API
path
- Type:string
(optional, default is'./src/locales'
): the path to the locales directory.
License
MIT