Skip to content

Flag icon for spain regional languages #1352

@alejandroppir

Description

@alejandroppir

Describe the bug
In spain we have 4 official languages. Spanish, Galician, Catalonian and Basque
The extension display language is not working correctly for spanish.

Image

My guess is that even when the flags are here flags svg (es-ca, es-eu, es-gl), they are not here flags utils
So, even when I rename my files to gl-es.json, es-gl.json or even gl.json and following the documentation to configure, the flag is stil not showing correctly

  "i18n-ally.localeCountryMap": {
    "gl": "es-gl"
  },
Image

Doesn't show any flag, spanish flag or greenland flag

Extension Version
i18n Ally (v2.13.1)

Framework/i18n package you are using
ngx-translate

To Reproduce
Steps to reproduce the behavior:

  1. Create a file for galician language like gl-es.json, es-gl.json or gl.json
  2. Go to the extension and check the flags

Device Infomation

  • OS: windows
  • Version: 11
  • VS Code Version: 1.104.2

Extension Log
🈶 Activated, v2.13.1

――――――

💼 Workspace root changed to "X"
🌞 Enabled
🧩 Enabled frameworks: Angular ngx-translate
🧬 Enabled parsers: json, yaml, json5

📈 Telemetry id: 3f181156-e818-4769-94b9-d60fa7ea4279
🚀 Initializing loader "X"
📂 Directory structure: file
🗃 Path Matcher Regex: /^(?[\w-_]+).(?json|ya?ml|json5)$/

📂 Loading locales under X\src\assets\i18n
📑 Loading (ca-ES) ca-ES.json [1759918262299.6443]
📑 Loading (en-US) en-US.json [1759918262302.0332]
📑 Loading (es-ES) es-ES.json [1759918262303.3625]
📑 Loading (es-gl) es-gl.json [1759918262305.4163]
📑 Loading (gl-ES) gl-ES.json [1759918262305.4163]
📑 Loading (gl) gl.json [1759918262305.4163]
📑 Loading (pt-PT) pt-PT.json [1759918262306.4185]

👀 Watching change on X\src\assets\i18n
✅ Loading finished

――――――

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions