mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-19 22:30:31 +00:00
feat: i18n middleware
feat: i18n configuration. feat: i18n with tenancy.
This commit is contained in:
9
server/src/loaders/i18n.ts
Normal file
9
server/src/loaders/i18n.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import i18n from 'i18n';
|
||||
import path from 'path';
|
||||
|
||||
export default () => i18n.configure({
|
||||
locales: ['en', 'ar'],
|
||||
register: global,
|
||||
directory: path.join(global.rootPath, 'src/locales'),
|
||||
updateFiles: false
|
||||
})
|
||||
Reference in New Issue
Block a user