{"repo":"mxmvshnvsk/i18n-unused","free":true,"listed":false,"github":"https://github.com/mxmvshnvsk/i18n-unused","clone":"git clone https://github.com/mxmvshnvsk/i18n-unused.git","description":"The static analyze tool for finding, marking and removing unused and missing i18n translations in your JavaScript project","language":"TypeScript","stars":152,"topics":["i18n","i18n-js","internationalization","react","vue","angular","javascript","typescript","nodejs","svelte"],"license":"MIT","category":"ui-components","readme_excerpt":"i18n-unused The static analyze tool for finding, marking and removing unused and missing i18n translations in your JavaScript project. Installation With npm: With yarn: Configuration Add config i18n-unused.config.js to your root folder: For ES-Modules (esm) use i18n-unused.config.cjs . You can also use the .json with no support for callbacks. Configuration options Option name Description Required Type Default value --- --- --- --- --- localesPath path to search for locales yes string - localesExtensions allowed file extensions for locales no string[] if not set localeNameResolver : ['json'] localeNameResolver file name resolver for locales no RegExp, (name: string) = boolean - customChecker function to check if a key is used, if so the key should be removed from translationsKeys no fn, (matchedKeys: Set\\ , translationsKeys: string[] = void) A defined validations will be applied localeFileParser resolve locale imports, for example if you use named imports from locales files, just wrap it to your own resolver no (module) = module fn, return module.default or module localeFileLoader load the locale file manually (e.g. for using your own parser) no (filePath) = object - srcPath path to search for translations no string '' (same as run folder) srcExtensions allowed file extensions for translations no string[] ['js', 'ts', 'jsx', 'tsx', 'vue'] ignorePaths ignored paths, eg: ['src/ignored-folder'] , should start similarly srcPath no string[] - translationKeyMatcher matcher to search","default_branch":null,"files":null,"tree":[],"storefront":"/r/mxmvshnvsk","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/mxmvshnvsk/i18n-unused/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}