Merge pull request #13511 from sluetze/12807-i18n-de-de

[i18n] added support for German
This commit is contained in:
Will Sun 2020-12-02 13:42:52 +08:00 committed by GitHub
commit dbec54573c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 1601 additions and 3 deletions

View File

@ -27,6 +27,7 @@
<a href="javascript:void(0)" clrDropdownItem (click)='switchLanguage("fr-fr")' [class.lang-selected]='matchLang("fr-fr")'>Français</a>
<a href="javascript:void(0)" clrDropdownItem (click)='switchLanguage("pt-br")' [class.lang-selected]='matchLang("pt-br")'>Português do Brasil</a>
<a href="javascript:void(0)" clrDropdownItem (click)='switchLanguage("tr-tr")' [class.lang-selected]='matchLang("tr-tr")'>Türkçe</a>
<a href="javascript:void(0)" clrDropdownItem (click)='switchLanguage("de-de")' [class.lang-selected]='matchLang("de-de")'>Deutsch</a>
</clr-dropdown-menu>
</clr-dropdown>
<div class="nav-divider"></div>

View File

@ -11,7 +11,7 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
export const supportedLangs = ['en-us', 'zh-cn', 'zh-tw', 'es-es', 'fr-fr', 'pt-br', 'tr-tr'];
export const supportedLangs = ['en-us', 'zh-cn', 'zh-tw', 'es-es', 'fr-fr', 'pt-br', 'tr-tr', 'de-de'];
export const enLang = "en-us";
export const languageNames = {
"en-us": "English",
@ -20,7 +20,8 @@ export const languageNames = {
"es-es": "Español",
"fr-fr": "Français",
"pt-br": "Português do Brasil",
"tr-tr": "Türkçe"
"tr-tr": "Türkçe",
"de-de": "Deutsch"
};
export const enum AlertType {
DANGER, WARNING, INFO, SUCCESS

File diff suppressed because it is too large Load Diff

View File

@ -53,7 +53,7 @@ export const DEFAULT_LANG_COOKIE_KEY = 'harbor-lang';
/**
* Declare what languages are supported now.
*/
export const DEFAULT_SUPPORTING_LANGS = ['en-us', 'zh-cn', 'zh-tw', 'es-es', 'fr-fr', 'pt-br', 'tr-tr'];
export const DEFAULT_SUPPORTING_LANGS = ['en-us', 'zh-cn', 'zh-tw', 'es-es', 'fr-fr', 'pt-br', 'tr-tr', 'de-de'];
/**
* The default language.