I have used the blog by Jürgen Leschner as a reference and created a language switcher that can switch between English and Hindi for the hardcoded text across the app.
[ x ] Adding a language switcher
[ x ] Extracting the page copy to a paraglide schema. An messages/en.json to begin with.
[ x ] Removing instances of hardcoded text and using the data from the language schema instead.
Some words have been translated to show the working of the feature. There are also a few changes made to package.json file that can break the CD pipeline on Netlify, so it'd be ideal to test it as an independent app first.
I have used the blog by Jürgen Leschner as a reference and created a language switcher that can switch between English and Hindi for the hardcoded text across the app.
Some words have been translated to show the working of the feature. There are also a few changes made to
package.json
file that can break the CD pipeline on Netlify, so it'd be ideal to test it as an independent app first.