Internationalization
This commit is contained in:
+11
-11
@@ -4,18 +4,18 @@ globalThis.Wegwichtel ??= {};
|
||||
'use strict';
|
||||
|
||||
const entries = Object.freeze([
|
||||
['🪵', 'Holz'],
|
||||
['🪨', 'Felsen'],
|
||||
['🏮', 'Laterne'],
|
||||
['🌼', 'Blume'],
|
||||
['🚬', 'Pfeife'],
|
||||
['🐦', 'Vogel'],
|
||||
['🍄', 'Pilz'],
|
||||
['🍓', 'Erdbeere'],
|
||||
['🎃', 'Kürbis']
|
||||
].map(([unicode, label]) => Object.freeze({
|
||||
['🪵', "group-symbols.holz"],
|
||||
['🪨', "group-symbols.felsen"],
|
||||
['🏮', "group-symbols.laterne"],
|
||||
['🌼', "group-symbols.blume"],
|
||||
['🚬', "group-symbols.pfeife"],
|
||||
['🐦', "group-symbols.vogel"],
|
||||
['🍄', "group-symbols.pilz"],
|
||||
['🍓', "group-symbols.erdbeere"],
|
||||
['🎃', "group-symbols.kurbis"]
|
||||
].map(([unicode, labelKey]) => Object.freeze({
|
||||
unicode,
|
||||
label,
|
||||
get label() { return ns.I18n.t(labelKey); },
|
||||
imageUrl: `/images/group-symbols/${unicode}.png`
|
||||
})));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user