@@ -5,6 +5,7 @@ import { ReactComponent as ArticleFooterSVG } from "../../../assets/article-foot
5
5
import "./index.scss" ;
6
6
import { useGleanClick } from "../../../telemetry/glean-context" ;
7
7
import { ARTICLE_FOOTER , THUMBS } from "../../../telemetry/constants" ;
8
+ import { DEFAULT_LOCALE } from "../../../../../libs/constants" ;
8
9
9
10
export function LastModified ( { value, locale } ) {
10
11
if ( ! value ) {
@@ -46,7 +47,7 @@ const FEEDBACK_REASONS: Required<Record<FeedbackReason, string>> = {
46
47
other : "Other" ,
47
48
} ;
48
49
49
- export function ArticleFooter ( { doc, locale } ) {
50
+ export function ArticleFooter ( { doc } ) {
50
51
const [ view , setView ] = useState < ArticleFooterView > ( ArticleFooterView . Vote ) ;
51
52
const [ reason , setReason ] = useState < FeedbackReason > ( ) ;
52
53
@@ -127,9 +128,9 @@ export function ArticleFooter({ doc, locale }) {
127
128
) }
128
129
</ fieldset >
129
130
130
- < Contribute />
131
+ < Contribute locale = { doc . locale } />
131
132
< p className = "last-modified-date" >
132
- < LastModified value = { doc . modified } locale = { locale } /> by{ " " }
133
+ < LastModified value = { doc . modified } locale = { doc . locale } /> by{ " " }
133
134
< Authors url = { doc . mdn_url } /> .
134
135
</ p >
135
136
{ doc . isActive && < OnGitHubLink doc = { doc } /> }
@@ -138,13 +139,15 @@ export function ArticleFooter({ doc, locale }) {
138
139
) ;
139
140
}
140
141
141
- function Contribute ( ) {
142
+ function Contribute ( { locale } ) {
143
+ const repo = locale === DEFAULT_LOCALE ? "content" : "translated-content" ;
144
+
142
145
return (
143
146
< >
144
147
< a
145
148
className = "contribute"
146
- href = " https://github.com/mdn/content /blob/main/CONTRIBUTING.md"
147
- title = { ` This will take you to our contribution guidelines on GitHub.` }
149
+ href = { ` https://github.com/mdn/${ repo } /blob/main/CONTRIBUTING.md` }
150
+ title = " This will take you to our contribution guidelines on GitHub."
148
151
target = "_blank"
149
152
rel = "noopener noreferrer"
150
153
>
0 commit comments