DF-1226: Add Welsh language translations to the clientside maps - #456
Conversation
2845f6d to
de0a612
Compare
|
| disabled = false, | ||
| readonly = false | ||
| readonly = false, | ||
| lang = DEFAULT_LANG |
There was a problem hiding this comment.
Just a general point about passing an optional 'lang' param ... my preference would be to have the 'lang' required in all cases apart from the top level call (where it might default to en-GB say). That way you can be sure you've not forgotten to pass a 'lang' into an inner method i.e. the linter would pick that up.
But if you have sufficient test coverage, it should be fine.
There was a problem hiding this comment.
I kept this in because this function is also used by forms-designer (to generate the "map review" page) and it doesn't have a language switch. I could make it mandatory but we'd have to then pass in en-GB from designer
jbarnsley10
left a comment
There was a problem hiding this comment.
Good work. Just my observation about the optional 'lang' param but I'll leave that up to you to decide what you think is best.



Proposed change
Maps plugin: Add Welsh translation capability
Jira ticket: https://eaflood.atlassian.net/browse/DF-1226
Type of change
Checklist
README.mdanddocs/*(where appropriate, e.g. new features).npm run test).npm run lint).npm run format).