Browse Source

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
Chocobozzz 4 years ago
parent
commit
8323c435c1
3 changed files with 0 additions and 11 deletions
  1. 0 7
      client/angular.json
  2. 0 3
      scripts/build/client.sh
  3. 0 1
      shared/models/i18n/i18n.ts

+ 0 - 7
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" ]
             },

+ 0 - 3
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"

+ 0 - 1
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)',