From 8323c435c19ac6ed1656ee8436b175bce7bd2c82 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 6 Apr 2020 14:29:11 +0200 Subject: [PATCH] Remove oc locale support It does not work since many releases, and nobody created an issue so we don't consider it much use It does not work because Angular does not know this locale: https://github.com/angular/angular/tree/master/packages/common/locales --- client/angular.json | 7 ------- scripts/build/client.sh | 3 --- shared/models/i18n/i18n.ts | 1 - 3 files changed, 11 deletions(-) diff --git a/client/angular.json b/client/angular.json index 44749d6b1..a64596a08 100644 --- a/client/angular.json +++ b/client/angular.json @@ -41,10 +41,6 @@ "translation": "src/locale/angular.es-ES.xlf", "baseHref": "/client/es-ES/" }, - "oc": { - "translation": "src/locale/angular.oc.xlf", - "baseHref": "/client/oc/" - }, "pt": { "translation": "src/locale/angular.pt-BR.xlf", "baseHref": "/client/pt-BR/" @@ -212,9 +208,6 @@ "es-ES": { "localize": [ "es" ] }, - "oc": { - "localize": [ "oc" ] - }, "pt-BR": { "localize": [ "pt" ] }, diff --git a/scripts/build/client.sh b/scripts/build/client.sh index e7475f56c..05c40b5bb 100755 --- a/scripts/build/client.sh +++ b/scripts/build/client.sh @@ -53,8 +53,6 @@ if [ -z ${1+x} ] || [ "$1" != "--light" ]; then languages=(["el"]="el-GR") elif [ ! -z ${1+x} ] && [ "$1" == "--light-es" ]; then languages=(["es"]="es-ES") - elif [ ! -z ${1+x} ] && [ "$1" == "--light-oc" ]; then - languages=(["oc"]="oc") elif [ ! -z ${1+x} ] && [ "$1" == "--light-pt" ]; then languages=(["pt"]="pt-BR") elif [ ! -z ${1+x} ] && [ "$1" == "--light-pt-PT" ]; then @@ -95,7 +93,6 @@ if [ -z ${1+x} ] || [ "$1" != "--light" ]; then ["gd"]="gd" ["el"]="el-GR" ["es"]="es-ES" - ["oc"]="oc" ["pt"]="pt-BR" ["pt-PT"]="pt-PT" ["sv"]="sv-SE" diff --git a/shared/models/i18n/i18n.ts b/shared/models/i18n/i18n.ts index 9a5ea27dc..46940772f 100644 --- a/shared/models/i18n/i18n.ts +++ b/shared/models/i18n/i18n.ts @@ -18,7 +18,6 @@ export const I18N_LOCALES = { 'it-IT': 'Italiano', 'ja-JP': '日本語', 'nl-NL': 'Nederlands', - 'oc': 'Occitan', 'pl-PL': 'Polski', 'pt-BR': 'Português (Brasil)', 'pt-PT': 'Português (Portugal)',