Add translation for classic colour palette

This commit is contained in:
Ben Grant 2022-08-20 23:48:51 +10:00
parent cc998f1bc9
commit e6051ee98b
2 changed files with 3 additions and 2 deletions

View file

@ -55,7 +55,8 @@
"label": "Language" "label": "Language"
}, },
"colormap": { "colormap": {
"label": "Heatmap colors" "label": "Heatmap colors",
"classic": "Crab Fit (classic)"
} }
}, },
"video": { "video": {

View file

@ -131,7 +131,7 @@ const Settings = () => {
name="colormap" name="colormap"
id="colormap" id="colormap"
options={{ options={{
'crabfit': 'Crab Fit (classic)', 'crabfit': t('options.colormap.classic'),
...Object.fromEntries(Object.keys(maps).map(palette => [ ...Object.fromEntries(Object.keys(maps).map(palette => [
palette, palette,
palette.split('-') palette.split('-')