Remove oc locale support
authorChocobozzz <me@florianbigard.com>
Mon, 6 Apr 2020 12:29:11 +0000 (14:29 +0200)
committerChocobozzz <me@florianbigard.com>
Mon, 6 Apr 2020 12:37:26 +0000 (14:37 +0200)
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
scripts/build/client.sh
shared/models/i18n/i18n.ts

index 44749d6b1ac95d288ccd6fb6a11fab60e381961a..a64596a08743f7c9de602bb6170482802a301132 100644 (file)
             "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/"
             "es-ES": {
               "localize":  [ "es" ]
             },
-            "oc": {
-              "localize":  [ "oc" ]
-            },
             "pt-BR": {
               "localize":  [ "pt" ]
             },
index e7475f56cec4c126aae6b1cafe3282e3d08f5338..05c40b5bbac07d71c0d1fd12edef4b4f9a1a33f6 100755 (executable)
@@ -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"
index 9a5ea27dc59c0628f232d91b25ea76257a545dc5..46940772faf81148672052ed4d2cc678ee00d7d1 100644 (file)
@@ -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)',