mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-13 00:03:27 +10:00
feat(i18n): implement localization using LinguiJS
This commit is contained in:
@ -2,6 +2,7 @@
|
||||
try {
|
||||
if (
|
||||
localStorage.theme === "dark" ||
|
||||
// eslint-disable-next-line lingui/no-unlocalized-strings
|
||||
window.matchMedia("(prefers-color-scheme: dark)").matches
|
||||
) {
|
||||
document.documentElement.classList.add("dark");
|
||||
|
||||
Reference in New Issue
Block a user