The W3C HTML5 Validator has been enhanced with functionality that detects the overall language of a page. The validator can currently detect a little over 50 languages, but more will be added over time.
This makes it possible to compare the language of the content in a page with language declarations, and issue warnings if the
lang attribute does not match the language of content, if no
lang attribute is given at all, or if a language using a right-to-left script is detected but a
dir attribute is missing from the
The ‘i18n checker‘ is a free service by W3C that provides information about internationalization-related aspects of your HTML page, and advice on how to improve your use of markup, where needed, to support the multilingual Web.
This latest release uses a new user interface and redesigned source code. It also adds a number of new tests, a file upload facility, and support for HTML5.
This is still a ‘pre-final’ release and development continues. There are already plans to add further tests and features, to translate the user interface, to add support for XHTML5 and polyglot documents, to integrate with the W3C Unicorn checker, and to add various other features. At this stage we are particularly interested in receiving user feedback.
Try the checker and let us know if you find any bugs or have any suggestions.