20200512 Julie Kwok
To see result
- download repo
cd multiplingualportolio
npm install
npm start
Page behaviours
- At any time, click on the
change to
button on top right, page displays current content, including contact form label, in target language. - Navbar has links to see two separated pages, home and work
- Home page has an antD contact form, for the moment it is not plugged into any real thing.
Difficulties
- How to translate antD
required
input message ? - I kinda hate antD's way of mask CSS as js in layout options, it is so nasty.
- How to add
onclick
to text in<FormattedMessage>
? - How to concatenate
intl.formatMessage({ id: 'submit' })
with other vars? It seems the "${}
" doesn't work -_-!