-
-
Notifications
You must be signed in to change notification settings - Fork 627
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add named exports for createInstance (#1681)
* Add named exports for createInstance * Add hybrid module support * createInstance is a static method * Make createInstance a static property * Fix * Fix lint * Slight improvement * Update * Swap esm module with package.json * Update imports mjs -> js * Swap index.esm.js with index.cjs.js * Remove exports default option * Bind all instance member functions
- Loading branch information
1 parent
9ad73d5
commit e401175
Showing
8 changed files
with
2,614 additions
and
919 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import i18next from './i18next.js'; | ||
|
||
export default i18next; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,18 @@ | ||
import i18next from './i18next.js'; | ||
|
||
export default i18next; | ||
|
||
export const createInstance = i18next.createInstance; | ||
|
||
export const init = i18next.init; | ||
export const loadResources = i18next.loadResources; | ||
export const reloadResources = i18next.reloadResources; | ||
export const use = i18next.use; | ||
export const changeLanguage = i18next.changeLanguage; | ||
export const getFixedT = i18next.getFixedT; | ||
export const t = i18next.t; | ||
export const exists = i18next.exists; | ||
export const setDefaultNamespace = i18next.setDefaultNamespace; | ||
export const hasLoadedNamespace = i18next.hasLoadedNamespace; | ||
export const loadNamespaces = i18next.loadNamespaces; | ||
export const loadLanguages = i18next.loadLanguages; |