diff options
| author | Oliver <oliver@mohlin.dev> | 2025-10-03 10:24:07 +0200 |
|---|---|---|
| committer | Tobias Järvelöv <tobias.jarvelov@mullvad.net> | 2025-10-10 13:36:21 +0200 |
| commit | 0cc8d8359b1f15d48ebfa1616ae614ea4044141b (patch) | |
| tree | 97e17517b68e11b73f79660733b8b5c0fee3275f | |
| parent | 8f8d5560d999c29f40a9345f9b5736d572d2950f (diff) | |
| download | mullvadvpn-0cc8d8359b1f15d48ebfa1616ae614ea4044141b.tar.xz mullvadvpn-0cc8d8359b1f15d48ebfa1616ae614ea4044141b.zip | |
Add em to allowed tags in verify translations script
| -rw-r--r-- | desktop/packages/mullvad-vpn/scripts/verify-translations-format.ts | 2 | ||||
| -rw-r--r-- | desktop/packages/mullvad-vpn/src/renderer/lib/html-formatter.tsx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/desktop/packages/mullvad-vpn/scripts/verify-translations-format.ts b/desktop/packages/mullvad-vpn/scripts/verify-translations-format.ts index ad3c027ac9..4b21b46426 100644 --- a/desktop/packages/mullvad-vpn/scripts/verify-translations-format.ts +++ b/desktop/packages/mullvad-vpn/scripts/verify-translations-format.ts @@ -4,7 +4,7 @@ import path from 'path'; const LOCALES_DIR = path.join('locales'); -const ALLOWED_TAGS = ['b', 'br']; +const ALLOWED_TAGS = ['b', 'br', 'em']; const ALLOWED_VOID_TAGS = ['br']; // Make sure to report these strings to crowdin. View this as a temporary escape diff --git a/desktop/packages/mullvad-vpn/src/renderer/lib/html-formatter.tsx b/desktop/packages/mullvad-vpn/src/renderer/lib/html-formatter.tsx index 6fd98272d2..0766a59bd5 100644 --- a/desktop/packages/mullvad-vpn/src/renderer/lib/html-formatter.tsx +++ b/desktop/packages/mullvad-vpn/src/renderer/lib/html-formatter.tsx @@ -4,7 +4,7 @@ import styled from 'styled-components'; import { colors } from './foundations'; const Bold = styled.span({ fontWeight: 700 }); -const Emphasis = styled.em({ color: colors.white }); +const Emphasis = styled.em({ color: colors.white, fontWeight: 600 }); // When a new tag is added here, it must also be added to allowed tags in // our verify translations script. |
