Skip to content

15. Support for multiple languages

Ilkka Seppälä edited this page Jun 4, 2021 · 7 revisions

Overview

We have multiple ways how the user can approach the repository:

  1. Browse the Github repository directly https://github.com/iluwatar/java-design-patterns
  2. Use the website https://java-design-patterns.com

At the moment almost everything is in English, but we need to add translations for several other languages. For scenario 1) the user can browse to the correct language file and for scenario 2) we will provide a language selector component in the top navigation.

Organization rules of translated files

The method for organizing the translations is to put them into directories named after the language code. The translated file still uses the original name (e.g. README.md),just place it in the directory named after the language code.

  • localization
    • fr
      • README.md
    • zh
      • README.md
      • abstract-document
        • README.md
      • abstract-factory
        • README.md
      • active-object
        • README.md

Language code

The language codes are listed on this page: http://www.loc.gov/standards/iso639-2/php/code_list.php

Contribute

It's a huge task to translate the whole repo into several languages. Join us, if you are interested in this repo. Translate docs in your language so that more people can get to know this repo.