feat: Replace NZ flag with Tino Rangatiratanga flag for Te Reo Māori
Uses SVG from mysovereignty.digital for proper Māori representation. Tooltip still shows "Planned" as requested. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
d88a122fdc
commit
69c33fc18f
1 changed files with 5 additions and 2 deletions
|
|
@ -8,7 +8,7 @@
|
|||
{ code: 'en', name: 'English', flag: '🇬🇧' },
|
||||
{ code: 'de', name: 'Deutsch', flag: '🇩🇪' },
|
||||
{ code: 'fr', name: 'Français', flag: '🇫🇷' },
|
||||
{ code: 'mi', name: 'Te Reo Māori', flag: '🇳🇿', disabled: true, tooltip: 'Planned' }
|
||||
{ code: 'mi', name: 'Te Reo Māori', flagUrl: 'https://stroh.mysovereignty.digital/images/tino-rangatiratanga-flag.svg', disabled: true, tooltip: 'Planned' }
|
||||
];
|
||||
|
||||
function createLanguageSelector() {
|
||||
|
|
@ -32,7 +32,10 @@
|
|||
title="${lang.name}${lang.disabled ? ' (' + lang.tooltip + ')' : ''}"
|
||||
${lang.disabled ? 'disabled' : ''}
|
||||
>
|
||||
<span class="text-2xl" role="img" aria-label="${lang.name} flag">${lang.flag}</span>
|
||||
${lang.flagUrl
|
||||
? `<img src="${lang.flagUrl}" alt="${lang.name} flag" class="w-6 h-6 rounded-sm object-cover">`
|
||||
: `<span class="text-2xl" role="img" aria-label="${lang.name} flag">${lang.flag}</span>`
|
||||
}
|
||||
</button>
|
||||
`).join('')}
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue