Skip to content

Commit

Permalink
Enable i18n
Browse files Browse the repository at this point in the history
Signed-off-by: Ansh Goyal <[email protected]>
  • Loading branch information
anshgoyalevil committed Sep 28, 2023
1 parent f8a981b commit 4bb2f3b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
11 changes: 5 additions & 6 deletions components/navigation/NavBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,9 @@ export default function NavBar({
router.push(href);
};

// To be enabled on the last PR
// useEffect(() => {
// changeLanguage(browserLanguageDetector(), false);
// }, []);
useEffect(() => {
changeLanguage(browserLanguageDetector(), false);
}, []);

function outsideClick(menu) {
if (open !== menu) return;
Expand Down Expand Up @@ -180,14 +179,14 @@ export default function NavBar({
</SearchButton>

{/* // Language Picker Component */}
{/* <LanguageSelect
<LanguageSelect
options={uniqueLangs}
onChange={(value) => {
changeLanguage(value.toLowerCase(), true);
}}
className=""
selected={i18n.language.toLocaleUpperCase()}
/> */}
/>

<GithubButton text="Star on GitHub" href="https://github.com/asyncapi/spec" className="py-2 ml-2" inNav="true" />
</div>
Expand Down
4 changes: 2 additions & 2 deletions pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ import NewsroomSection from '../components/newsroom/NewsroomSection'
import { languageDetection } from "../lib/i18n";

function HomePage() {
//To be enabled in a future PR
//languageDetection();

languageDetection();
return (
<>
<Head />
Expand Down

0 comments on commit 4bb2f3b

Please sign in to comment.