Skip to content

Commit 3691d39

Browse files
committed
fix(translation): don't translate OpenJS Foundation
1 parent 9f16142 commit 3691d39

File tree

8 files changed

+11
-12
lines changed

8 files changed

+11
-12
lines changed

apps/site/components/withFooter.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@ const WithFooter: FC = () => {
1717

1818
const navigation = {
1919
socialLinks,
20-
footerLinks: footerLinks.map(link => ({ ...link, text: t(link.text) })),
20+
footerLinks: footerLinks.map(link => ({
21+
...link,
22+
text: link.label ? t(link.label) : (link.text as string),
23+
})),
2124
};
2225

2326
const primary = (

apps/site/navigation.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,23 +34,23 @@
3434
"footerLinks": [
3535
{
3636
"link": "https://trademark-policy.openjsf.org/",
37-
"text": "components.containers.footer.links.trademarkPolicy"
37+
"label": "components.containers.footer.links.trademarkPolicy"
3838
},
3939
{
4040
"link": "https://privacy-policy.openjsf.org/",
41-
"text": "components.containers.footer.links.privacyPolicy"
41+
"label": "components.containers.footer.links.privacyPolicy"
4242
},
4343
{
4444
"link": "https://github.com/openjs-foundation/cross-project-council/blob/main/CODE_OF_CONDUCT.md",
45-
"text": "components.containers.footer.links.codeOfConduct"
45+
"label": "components.containers.footer.links.codeOfConduct"
4646
},
4747
{
4848
"link": "https://github.com/nodejs/node/security/policy",
49-
"text": "components.containers.footer.links.security"
49+
"label": "components.containers.footer.links.security"
5050
},
5151
{
5252
"link": "https://openjsf.org/",
53-
"text": "components.containers.footer.links.openJSFoundation"
53+
"text": "OpenJS Foundation"
5454
}
5555
],
5656
"socialLinks": [

apps/site/types/navigation.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ import type { HTMLAttributeAnchorTarget } from 'react';
33
import type { IntlMessageKeys } from './i18n';
44

55
export type FooterConfig = {
6-
text: IntlMessageKeys;
6+
label?: IntlMessageKeys;
7+
text?: string;
78
link: string;
89
};
910

packages/i18n/src/locales/en.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"containers": {
44
"footer": {
55
"links": {
6-
"openJSFoundation": "OpenJS Foundation",
76
"trademarkPolicy": "Trademark Policy",
87
"privacyPolicy": "Privacy Policy",
98
"codeOfConduct": "Code of Conduct",

packages/i18n/src/locales/fr.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"containers": {
44
"footer": {
55
"links": {
6-
"openJSFoundation": "Fondation OpenJS",
76
"trademarkPolicy": "Politique de Marque",
87
"privacyPolicy": "Politique de confidentialité",
98
"codeOfConduct": "Code de conduite",

packages/i18n/src/locales/ja.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"containers": {
44
"footer": {
55
"links": {
6-
"openJSFoundation": "OpenJS Foundation",
76
"trademarkPolicy": "商標ポリシー",
87
"privacyPolicy": "プライバシーポリシー",
98
"codeOfConduct": "行動規範",

packages/i18n/src/locales/ro.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"containers": {
44
"footer": {
55
"links": {
6-
"openJSFoundation": "Fundația OpenJS",
76
"trademarkPolicy": "Politică de mărci comerciale",
87
"privacyPolicy": "Politică de confidențialitate",
98
"codeOfConduct": "Cod de conduită",

packages/i18n/src/locales/uk.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"containers": {
44
"footer": {
55
"links": {
6-
"openJSFoundation": "OpenJS Foundation",
76
"trademarkPolicy": "Політика торгових марок",
87
"privacyPolicy": "Політика конфіденційності",
98
"versionSupport": "Підтримка версії",

0 commit comments

Comments
 (0)