acdc509630
Co-authored-by: hailey <me@haileyok.com> Co-authored-by: Stanislas Signoud <signez@stanisoft.net> Co-authored-by: will berry <wsb@wills-MBP.attlocal.net> Co-authored-by: BlueSkiesAndGreenPastures <will@blueskyweb.xyz> Co-authored-by: Chenyu Huang <itschenyu@gmail.com>
16 lines
332 B
TypeScript
16 lines
332 B
TypeScript
import path from 'node:path'
|
|
import {fileURLToPath} from 'node:url'
|
|
|
|
import i18n from 'i18n'
|
|
|
|
const __filename = fileURLToPath(import.meta.url)
|
|
const __dirname = path.dirname(__filename)
|
|
|
|
i18n.configure({
|
|
locales: ['en', 'es', 'fr'],
|
|
defaultLocale: 'en',
|
|
directory: path.join(__dirname, '../locales'),
|
|
})
|
|
|
|
export default i18n
|