Skip to content

Commit

Permalink
Fix VITE_DEFAULT_LANGUAGE -> VITE_DEFAULT_LANG
Browse files Browse the repository at this point in the history
  • Loading branch information
starsep committed Dec 27, 2023
1 parent 3324cdd commit f03aa44
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Second way is if you are using VS Code and have Docker installed you can use dev
Create .env file and put these variables there:
```
VITE_VERSION=$npm_package_version
VITE_DEFAULT_LANGUAGE=en
VITE_DEFAULT_LANG=en
VITE_OSM_API_URL=https://master.apis.dev.openstreetmap.org
VITE_BACKEND_API_URL=https://backdev.openaedmap.org
VITE_OSM_OAUTH2_CLIENT_ID=xXaPFXSLizLHuZzoLI1eebHncPdDdVH7nA917S9uFUo
Expand Down
2 changes: 1 addition & 1 deletion src/i18n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ if (!isProduction) {
languages.debug = { nativeName: "--debug--" };
}
const languagesIsoCodes = Object.keys(languages);
const defaultLanguage = import.meta.env.VITE_DEFAULT_LANGUAGE ?? "en";
const defaultLanguage = import.meta.env.VITE_DEFAULT_LANG ?? "en";

i18n
// i18next-http-backend
Expand Down

0 comments on commit f03aa44

Please sign in to comment.