Skip to content

Commit

Permalink
feat: add named export
Browse files Browse the repository at this point in the history
  • Loading branch information
sans-harness committed Nov 17, 2024
1 parent 8ad41af commit 4d80c98
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions apps/gitness/src/i18n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ i18n
.init({
// fallbackLng: 'en',
debug: true,
lng: 'en',
lng: 'fr',

interpolation: {
escapeValue: false
}
})

i18n.on('languageChanged', lng => {
i18next.changeLanguage('en')
i18next.changeLanguage('fr')
})

export default i18n
4 changes: 2 additions & 2 deletions packages/views/src/i18n/i18n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const resources = {
en: { translation: en },
fr: { translation: fr }
}
const i18next = createInstance({
export const i18next = createInstance({
resources,
// fallbackLng: 'en',
// lng: 'fr',
Expand All @@ -18,4 +18,4 @@ const i18next = createInstance({
i18next.use(initReactI18next)
i18next.init()

export default i18next
// export default i18next
6 changes: 3 additions & 3 deletions packages/views/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ export * from './layouts/FullWidth2ColumnLayout'
export { ExecutionState } from './components/execution/types'

// translation-engine
import i18n from './i18n/i18n'
export const i18next = i18n
// import i18n from './i18n/i18n'
// export const i18next = i18n

// export * from './i18n/i18n'
export * from './i18n/i18n'

0 comments on commit 4d80c98

Please sign in to comment.