feat(translations): add crowdin live support (#4177)

This commit is contained in:
Meier Lukas authored and GitHub committed 2025-10-02 19:54:08 +02:00
1 parent 878f8f3d60
commit 514034d184
8 files changed
+100 -42

No files matched your search

@@ -0,0 +1,17 @@
import Script from "next/script";
import type { SupportedLanguage } from "@homarr/translation";
export const CrowdinLiveTranslation = (props: { locale: SupportedLanguage }) => {
if (props.locale !== "cr") return null;
return (
<>
<Script type="text/javascript" src="//cdn.crowdin.com/jipt/jipt.js"></Script>
<Script type="text/javascript" id="crowdin-configuration">
{`var _jipt = []; _jipt.push(['project', 'homarr_labs']);`}
</Script>
</>
);
};