I am building a site that will allow the site owner to add/remove pages and blog posts in different languages.
The URLs to each page or blog post looks like:
I plan to add a language or country selector at the top of the page which allows a user to switch languages. When a new language is set, this language applies for the whole session (main interface language is also switched) until they switch languages again.
So, if I am browsing the english blog post
http://site.com/en/blog/my-awesome-blog-post, clicking the spanish button will redirect me to
The problem is that blog posts/pages might be posted in one language, but it might take a while for the translated version to be translated.
In the above case, let's say the spainish version has not been created yet, what should I do?
- Do not show a language switch button for spanish (misleading as the language switch should also switch the global site language.
- Redirect user to a place holder page that says translation is currently unavaliable.
- Redirect the user to the home page in spanish.
- Anything better than the above?