vendredi 16 octobre 2020

if (browser language=en) { load English image/text/website } else { load default image/text/website }

I'm simply building a page for my Member Customer... so I know they only speak French or English right now I have 2 pages for everything and they have to choose every time...I want to remove that and let the browser show text and/or image in their language. This way when I update something I won't have to update 2 pages, only the portion updated.

in simple HTML if possible.

Here is in more detail what I would like, as an example:

if lang="en" (text "Hello Customer today is...") else (text "Bonjour Client aujourd'hui le...") if lang="en" (image "ENGLISH INSTRUCTION.jpg") else ( image "FRENCH INSTRUCTION.jpg")

as you probably guess 90% of my customer are French the other 10% are English, that's why the page will be default french. (anything else then lang=en)

thank you, if the question was asked before please point it out... I search for many hours without finding the answer...maybe I'm asking it wrong.

Aucun commentaire:

Enregistrer un commentaire