diff options
| author | Armand Philippot <git@armandphilippot.com> | 2022-02-08 15:12:34 +0100 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2022-02-08 15:13:41 +0100 |
| commit | 5597ff486dba9d0ea9fb4a0acfdb73c690859147 (patch) | |
| tree | 0f1774a7be5616363790a0dba9246cb55c1d98f1 /src/pages | |
| parent | 5d79523eba4ec0a89668b904dc7896c843ab8dd6 (diff) | |
chore(prism): translate color scheme toggle button
Diffstat (limited to 'src/pages')
| -rw-r--r-- | src/pages/article/[slug].tsx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/pages/article/[slug].tsx b/src/pages/article/[slug].tsx index d00d939..feb672a 100644 --- a/src/pages/article/[slug].tsx +++ b/src/pages/article/[slug].tsx @@ -13,7 +13,11 @@ import { ArticleMeta, ArticleProps } from '@ts/types/articles'; import { settings } from '@utils/config'; import { getFormattedPaths } from '@utils/helpers/format'; import { loadTranslation } from '@utils/helpers/i18n'; -import { addPrismClasses, translateCopyButton } from '@utils/helpers/prism'; +import { + addPrismClasses, + translateCopyButton, + translateToggleButton, +} from '@utils/helpers/prism'; import { usePrismTheme } from '@utils/providers/prism'; import { GetStaticPaths, GetStaticProps, GetStaticPropsContext } from 'next'; import Head from 'next/head'; @@ -37,6 +41,7 @@ const SingleArticle: NextPageWithLayout<ArticleProps> = ({ post }) => { useEffect(() => { translateCopyButton(locale, intl); + translateToggleButton(locale, intl); }, [intl, locale]); const { setCodeBlocks } = usePrismTheme(); |
