Skip to content

simplelocalize/nextjs-tailwind-language-selector

Repository files navigation

Language selector with Tailwind and flag-icons

This is an example of using Next.js with Tailwind CSS and SimpleLocalize with flag-icons for language selector.

Preview

Preview

Selector code is in src/components/LanguageSelector.tsx and src/components/LanguageSelector.module.css

Running locally

First, run the development server:

npm run dev
# or
yarn dev
# or
pnpm dev

Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying pages/index.tsx. The page auto-updates as you edit the file.