added support for german

Signed-off-by: sluetze <13255307+sluetze@users.noreply.github.com>
This commit is contained in:
sluetze 2020-11-15 05:45:26 -05:00
parent 04c4354df9
commit 33fe276114
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("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("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("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-menu>
</clr-dropdown> </clr-dropdown>
<div class="nav-divider"></div> <div class="nav-divider"></div>

View File

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