UNPKG

i18next-fs-backend

Version:

i18next-fs-backend is a backend layer for i18next using in Node.js and for Deno to load translations from the filesystem.

5 lines (4 loc) 124 B
export default (filename) => { if (filename.indexOf('.') < 0) return undefined return `.${filename.split('.').pop()}` }