You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
add a string directing to beta.apertium.org (#483)
**Description:**
This PR addresses issue #361 and also builds upon and supersedes the
changes proposed in PR #422.
**Changes Made:**
- Modified `config.ts` by adding `showMoreLanguagesLink` and specified
its type as `boolean` in `types.ts`. Also, added `more_languages` to
`stringReplacements`.
- Modified `AboutModal.tsx` by conditionally rendering `more_languages`
based on the value of `shouldDisplayString`, either true or false.
- In `index.test.tsx`, modified a test to check if, when the About
dialog is opened and `showMoreLanguagesLink` is set to `true`, it should
render the `more_languages`. Similarly, when `showMoreLanguagesLink` is
set to `false` and the About dialog is opened, it should not render the
`more_languages`.
Copy file name to clipboardExpand all lines: src/strings/eng.json
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -48,6 +48,7 @@
48
48
"Help_Improve": "Help us improve Apertium!",
49
49
"Contact_Us": "Feel free to contact us if you find a mistake, there's a project you would like to see us work on, or you would like to help out.",
50
50
"Maintainer": "This website is maintained by {{maintainer}}.",
51
+
"More_Languages": "Looking for more languages? Try {{more_languages}}.",
51
52
"About_Title": "About this website",
52
53
"Enable_JS_Warning": "This site only works with JavaScript enabled, if you cannot <a href='http://www.enable-javascript.com/' target='_blank' rel='noopener'>enable Javascript</a>, then try the <a href='http://traductor.prompsit.com' target='_blank' rel='noopener'>translators at Prompsit</a>.",
53
54
"Not_Found_Error": "<b>404 Error:</b> Sorry, that page doesn't exist anymore!",
0 commit comments