File tree Expand file tree Collapse file tree 8 files changed +11
-12
lines changed
packages/i18n/src/locales Expand file tree Collapse file tree 8 files changed +11
-12
lines changed Original file line number Diff line number Diff 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 = (
Original file line number Diff line number Diff line change 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" : [
Original file line number Diff line number Diff line change @@ -3,7 +3,8 @@ import type { HTMLAttributeAnchorTarget } from 'react';
33import type { IntlMessageKeys } from './i18n' ;
44
55export type FooterConfig = {
6- text : IntlMessageKeys ;
6+ label ?: IntlMessageKeys ;
7+ text ?: string ;
78 link : string ;
89} ;
910
Original file line number Diff line number Diff line change 33 "containers" : {
44 "footer" : {
55 "links" : {
6- "openJSFoundation" : " OpenJS Foundation" ,
76 "trademarkPolicy" : " Trademark Policy" ,
87 "privacyPolicy" : " Privacy Policy" ,
98 "codeOfConduct" : " Code of Conduct" ,
Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff line change 33 "containers" : {
44 "footer" : {
55 "links" : {
6- "openJSFoundation" : " OpenJS Foundation" ,
76 "trademarkPolicy" : " 商標ポリシー" ,
87 "privacyPolicy" : " プライバシーポリシー" ,
98 "codeOfConduct" : " 行動規範" ,
Original file line number Diff line number Diff line change 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ă" ,
Original file line number Diff line number Diff line change 33 "containers" : {
44 "footer" : {
55 "links" : {
6- "openJSFoundation" : " OpenJS Foundation" ,
76 "trademarkPolicy" : " Політика торгових марок" ,
87 "privacyPolicy" : " Політика конфіденційності" ,
98 "versionSupport" : " Підтримка версії" ,
You can’t perform that action at this time.
0 commit comments