Skip to content

edamame852/the-resume

Repository files navigation

High level overview

  1. Entry point: src/pages/[lang]/index.js
  2. Every RC files under <Page>
  3. New FC "sections" gets added into src/components/Sections

i18n white app

🔥🔥🔥 Major thanks to xairoo to setting the stage for the basis of this project Please go check out his white starter app for i18next static rendering here!
This package brings you react-i18next and i18next to your static sites build with the next export future from Next.js.

  • 🗲 Translation is already rendered (SSG), client will receive the final translated site.
  • 🔥 Hot reload works also when you update your locale (translation) files.
  • 🚀 Automatic browser language detection can be realized.
  • 🍪 Cookie stores the client language.

Deployment

This project is deployed on github pages. Deploy Next.js site to Pages badge

Next.js i18n Starter for Static Pages

This starter allows you to use the next export future from Next.js in combination with i18n to create a complete static site.

Clients will directly redirected from / to /[lang] based on the detected language.

Packages included:

Installation

Clone the repository and run npm ci (recommend) or npm install.

Configuration

  • Set the supported languages, default language, namespaces and default namespace in /src/i18n/config.js
  • Locales are located in /src/locales/
    • To prevent mess, you can split the .json translation file(s) into multiple namespaces

Developing in dev - locally hosting on port3000

Run npm run dev to start the development server on http://localhost:3000.
Visit http://localhost:3000 to view this starter.

Build and Export Static Pages (locally or via CICD)

npm run export

Test/Serve the Site Locally (This doesn't work locally)

npm run serve

About

Another attempt at the-website

Topics

Resources

License

Stars

Watchers

Forks

Contributors