Add support for Persian language

This commit is contained in:
danidfra 2024-11-19 19:30:41 -03:00
parent 56a09f4419
commit a9c7afb502
1 changed files with 3 additions and 3 deletions

View File

@ -36,7 +36,7 @@ const SoapboxHead: React.FC<ISoapboxHead> = ({ children }) => {
if (dsn) {
startSentry(dsn).catch(console.error);
}
}, [dsn, locale]);
}, [dsn]);
return (
<>
@ -49,8 +49,8 @@ const SoapboxHead: React.FC<ISoapboxHead> = ({ children }) => {
{['dark', 'black'].includes(theme) && <style type='text/css'>{':root { color-scheme: dark; }'}</style>}
{/* eslint-disable formatjs/no-literal-string-in-jsx */}
<style type='text/css'>{`
html[lang='ar'] * { font-family: 'Vazirmatn' !important; }
html[lang='jv'] * { font-family: 'Noto Sans Javanese' !important; }
html[lang='ar'] *, html[lang='fa'] * { font-family: 'Vazirmatn'; }
html[lang='jv'] * { font-family: 'Noto Sans Javanese'; }
`}</style>
{/* eslint-enable formatjs/no-literal-string-in-jsx */}
<meta name='theme-color' content={soapboxConfig.brandColor} />