-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add option to show the default locale in the url (#51)
- default locale can now behave as other locales and be displayed in the url - initialize astro-i18next config and to make it available at runtime refs #54
- Loading branch information
1 parent
c6f13e3
commit 9281d7e
Showing
8 changed files
with
83 additions
and
48 deletions.
There are no files selected for viewing
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,16 @@ | ||
import { AstroI18nextConfig } from "types"; | ||
|
||
const astroI18nextConfig: AstroI18nextConfig = { | ||
defaultLanguage: "cimode", | ||
supportedLanguages: [], | ||
routes: {}, | ||
showDefaultLocale: false, | ||
}; | ||
|
||
export const getAstroI18nextConfig = () => astroI18nextConfig; | ||
|
||
export const setAstroI18nextConfig = (config: AstroI18nextConfig) => { | ||
for (const key in config) { | ||
astroI18nextConfig[key] = config[key]; | ||
} | ||
}; |
This file was deleted.
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