Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

15. Support for multiple languages

Ilkka Seppälä edited this pageMar 24, 2024 ·7 revisions

Overview

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

  1. Browse the Github repository directlyhttps://github.com/iluwatar/java-design-patterns
  2. Use the websitehttps://java-design-patterns.com

The main language is 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 provide a language selector component in the top navigation (see the website).

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. See the column "ISO 639-1 Code".

Clone this wiki locally

[8]ページ先頭

©2009-2025 Movatter.jp