gatsby-matrix-theme 53.17.0 → 53.17.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,14 @@
1
+ ## [53.17.1](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/compare/v53.17.0...v53.17.1) (2026-05-13)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * add month translations on verification badge text ([23ec9e4](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/commit/23ec9e44bbeaff9ca0d2f60f19781fee9166affc))
7
+ * remove console log ([df44cbf](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/commit/df44cbf38b36918f96326702e4a1f7b1e671ee30))
8
+
9
+
10
+ * Merge branch 'verification-month-translations' into 'master' ([abc5654](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/commit/abc5654df0431b962cc360dcaa388a56e146fb26))
11
+
1
12
  # [53.17.0](https://gitlab.com/g2m-gentoo/team-floyd/themes/matrix-theme/compare/v53.16.5...v53.17.0) (2026-05-11)
2
13
 
3
14
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gatsby-matrix-theme",
3
- "version": "53.17.0",
3
+ "version": "53.17.1",
4
4
  "main": "index.js",
5
5
  "description": "Matrix Theme NPM Package",
6
6
  "author": "",
@@ -1,21 +1,25 @@
1
1
  import React from 'react';
2
2
  import { classNames } from '@gigmedia/enigma-utils';
3
3
  import PropTypes from 'prop-types';
4
- import { generatePlaceholderString } from 'gatsby-core-theme/src/helpers/generators.mjs';
4
+ import { months } from 'gatsby-core-theme/src/constants/common.mjs';
5
5
  import useTranslate from '~hooks/useTranslate/useTranslate';
6
6
  import styles from './verification-badge.module.scss';
7
7
  import VerifyIcon from '../../../../images/icons/verified-author';
8
8
 
9
- const VerificationBadge = ({
10
- text = generatePlaceholderString(`${useTranslate('verified_on', 'Verified on')} [month]`),
11
- icon = <VerifyIcon color="#3B82F6" />,
12
- extraClass,
13
- }) => (
14
- <div className={classNames([styles.badgeContainer, extraClass])}>
15
- {icon}
16
- {text}
17
- </div>
18
- );
9
+ const VerificationBadge = ({ text, icon = <VerifyIcon color="#3B82F6" />, extraClass }) => {
10
+ const month = new Date().getMonth();
11
+ const defaultText = `${useTranslate('verified_on', 'Verified on')} ${useTranslate(
12
+ months[month],
13
+ months[month]
14
+ )}`;
15
+
16
+ return (
17
+ <div className={classNames([styles.badgeContainer, extraClass])}>
18
+ {icon}
19
+ {text ?? defaultText}
20
+ </div>
21
+ );
22
+ };
19
23
 
20
24
  VerificationBadge.propTypes = {
21
25
  text: PropTypes.string,