mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-06-30 18:46:00 +00:00
fix(appearance): keep i18n key parity and update the scaled-emoji test
Add the new appearance settings keys (widget group titles, sidebar/density hints) to every locale so the strict key-parity check passes, and update the single-emoji chat test to expect the now-scalable calc() font size.
This commit is contained in:
@@ -647,7 +647,7 @@ describe('CollabChat', () => {
|
|||||||
let foundBigEmoji = false;
|
let foundBigEmoji = false;
|
||||||
while (el) {
|
while (el) {
|
||||||
const styleAttr = el.getAttribute('style');
|
const styleAttr = el.getAttribute('style');
|
||||||
if (styleAttr && styleAttr.includes('font-size: 40px')) {
|
if (styleAttr && styleAttr.includes('font-size: calc(40px')) {
|
||||||
foundBigEmoji = true;
|
foundBigEmoji = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -374,6 +374,10 @@ const settings: TranslationStrings = {
|
|||||||
'settings.appearance.widget.daysTraveled': 'Days traveled',
|
'settings.appearance.widget.daysTraveled': 'Days traveled',
|
||||||
'settings.appearance.widget.distanceFlown': 'Distance flown',
|
'settings.appearance.widget.distanceFlown': 'Distance flown',
|
||||||
'settings.appearance.reset': 'Reset to defaults',
|
'settings.appearance.reset': 'Reset to defaults',
|
||||||
|
'settings.appearance.group.belowHero': 'Below the hero',
|
||||||
|
'settings.appearance.group.bottomOfPage': 'Bottom of page',
|
||||||
|
'settings.appearance.sidebarHint': 'The whole right column. Turn off and the dashboard centers.',
|
||||||
|
'settings.appearance.densityHint': 'Compact tightens spacing and padding for a denser layout that fits more on screen.',
|
||||||
};
|
};
|
||||||
|
|
||||||
export default settings;
|
export default settings;
|
||||||
|
|||||||
@@ -384,6 +384,10 @@ const settings: TranslationStrings = {
|
|||||||
'settings.appearance.widget.daysTraveled': 'Days traveled',
|
'settings.appearance.widget.daysTraveled': 'Days traveled',
|
||||||
'settings.appearance.widget.distanceFlown': 'Distance flown',
|
'settings.appearance.widget.distanceFlown': 'Distance flown',
|
||||||
'settings.appearance.reset': 'Reset to defaults',
|
'settings.appearance.reset': 'Reset to defaults',
|
||||||
|
'settings.appearance.group.belowHero': 'Below the hero',
|
||||||
|
'settings.appearance.group.bottomOfPage': 'Bottom of page',
|
||||||
|
'settings.appearance.sidebarHint': 'The whole right column. Turn off and the dashboard centers.',
|
||||||
|
'settings.appearance.densityHint': 'Compact tightens spacing and padding for a denser layout that fits more on screen.',
|
||||||
};
|
};
|
||||||
|
|
||||||
export default settings;
|
export default settings;
|
||||||
|
|||||||
@@ -381,6 +381,10 @@ const settings: TranslationStrings = {
|
|||||||
'settings.appearance.widget.daysTraveled': 'Days traveled',
|
'settings.appearance.widget.daysTraveled': 'Days traveled',
|
||||||
'settings.appearance.widget.distanceFlown': 'Distance flown',
|
'settings.appearance.widget.distanceFlown': 'Distance flown',
|
||||||
'settings.appearance.reset': 'Reset to defaults',
|
'settings.appearance.reset': 'Reset to defaults',
|
||||||
|
'settings.appearance.group.belowHero': 'Below the hero',
|
||||||
|
'settings.appearance.group.bottomOfPage': 'Bottom of page',
|
||||||
|
'settings.appearance.sidebarHint': 'The whole right column. Turn off and the dashboard centers.',
|
||||||
|
'settings.appearance.densityHint': 'Compact tightens spacing and padding for a denser layout that fits more on screen.',
|
||||||
};
|
};
|
||||||
|
|
||||||
export default settings;
|
export default settings;
|
||||||
|
|||||||
@@ -387,6 +387,10 @@ const settings: TranslationStrings = {
|
|||||||
'settings.appearance.widget.daysTraveled': 'Days traveled',
|
'settings.appearance.widget.daysTraveled': 'Days traveled',
|
||||||
'settings.appearance.widget.distanceFlown': 'Distance flown',
|
'settings.appearance.widget.distanceFlown': 'Distance flown',
|
||||||
'settings.appearance.reset': 'Reset to defaults',
|
'settings.appearance.reset': 'Reset to defaults',
|
||||||
|
'settings.appearance.group.belowHero': 'Below the hero',
|
||||||
|
'settings.appearance.group.bottomOfPage': 'Bottom of page',
|
||||||
|
'settings.appearance.sidebarHint': 'The whole right column. Turn off and the dashboard centers.',
|
||||||
|
'settings.appearance.densityHint': 'Compact tightens spacing and padding for a denser layout that fits more on screen.',
|
||||||
};
|
};
|
||||||
|
|
||||||
export default settings;
|
export default settings;
|
||||||
|
|||||||
@@ -392,6 +392,10 @@ const settings: TranslationStrings = {
|
|||||||
'settings.appearance.widget.daysTraveled': 'Days traveled',
|
'settings.appearance.widget.daysTraveled': 'Days traveled',
|
||||||
'settings.appearance.widget.distanceFlown': 'Distance flown',
|
'settings.appearance.widget.distanceFlown': 'Distance flown',
|
||||||
'settings.appearance.reset': 'Reset to defaults',
|
'settings.appearance.reset': 'Reset to defaults',
|
||||||
|
'settings.appearance.group.belowHero': 'Below the hero',
|
||||||
|
'settings.appearance.group.bottomOfPage': 'Bottom of page',
|
||||||
|
'settings.appearance.sidebarHint': 'The whole right column. Turn off and the dashboard centers.',
|
||||||
|
'settings.appearance.densityHint': 'Compact tightens spacing and padding for a denser layout that fits more on screen.',
|
||||||
};
|
};
|
||||||
|
|
||||||
export default settings;
|
export default settings;
|
||||||
|
|||||||
@@ -393,6 +393,10 @@ const settings: TranslationStrings = {
|
|||||||
'settings.appearance.widget.daysTraveled': 'Days traveled',
|
'settings.appearance.widget.daysTraveled': 'Days traveled',
|
||||||
'settings.appearance.widget.distanceFlown': 'Distance flown',
|
'settings.appearance.widget.distanceFlown': 'Distance flown',
|
||||||
'settings.appearance.reset': 'Reset to defaults',
|
'settings.appearance.reset': 'Reset to defaults',
|
||||||
|
'settings.appearance.group.belowHero': 'Below the hero',
|
||||||
|
'settings.appearance.group.bottomOfPage': 'Bottom of page',
|
||||||
|
'settings.appearance.sidebarHint': 'The whole right column. Turn off and the dashboard centers.',
|
||||||
|
'settings.appearance.densityHint': 'Compact tightens spacing and padding for a denser layout that fits more on screen.',
|
||||||
};
|
};
|
||||||
|
|
||||||
export default settings;
|
export default settings;
|
||||||
|
|||||||
@@ -386,6 +386,10 @@ const settings: TranslationStrings = {
|
|||||||
'settings.appearance.widget.daysTraveled': 'Days traveled',
|
'settings.appearance.widget.daysTraveled': 'Days traveled',
|
||||||
'settings.appearance.widget.distanceFlown': 'Distance flown',
|
'settings.appearance.widget.distanceFlown': 'Distance flown',
|
||||||
'settings.appearance.reset': 'Reset to defaults',
|
'settings.appearance.reset': 'Reset to defaults',
|
||||||
|
'settings.appearance.group.belowHero': 'Below the hero',
|
||||||
|
'settings.appearance.group.bottomOfPage': 'Bottom of page',
|
||||||
|
'settings.appearance.sidebarHint': 'The whole right column. Turn off and the dashboard centers.',
|
||||||
|
'settings.appearance.densityHint': 'Compact tightens spacing and padding for a denser layout that fits more on screen.',
|
||||||
};
|
};
|
||||||
|
|
||||||
export default settings;
|
export default settings;
|
||||||
|
|||||||
@@ -385,6 +385,10 @@ const settings: TranslationStrings = {
|
|||||||
'settings.appearance.widget.daysTraveled': 'Days traveled',
|
'settings.appearance.widget.daysTraveled': 'Days traveled',
|
||||||
'settings.appearance.widget.distanceFlown': 'Distance flown',
|
'settings.appearance.widget.distanceFlown': 'Distance flown',
|
||||||
'settings.appearance.reset': 'Reset to defaults',
|
'settings.appearance.reset': 'Reset to defaults',
|
||||||
|
'settings.appearance.group.belowHero': 'Below the hero',
|
||||||
|
'settings.appearance.group.bottomOfPage': 'Bottom of page',
|
||||||
|
'settings.appearance.sidebarHint': 'The whole right column. Turn off and the dashboard centers.',
|
||||||
|
'settings.appearance.densityHint': 'Compact tightens spacing and padding for a denser layout that fits more on screen.',
|
||||||
};
|
};
|
||||||
|
|
||||||
export default settings;
|
export default settings;
|
||||||
|
|||||||
@@ -385,6 +385,10 @@ const settings: TranslationStrings = {
|
|||||||
'settings.appearance.widget.daysTraveled': 'Days traveled',
|
'settings.appearance.widget.daysTraveled': 'Days traveled',
|
||||||
'settings.appearance.widget.distanceFlown': 'Distance flown',
|
'settings.appearance.widget.distanceFlown': 'Distance flown',
|
||||||
'settings.appearance.reset': 'Reset to defaults',
|
'settings.appearance.reset': 'Reset to defaults',
|
||||||
|
'settings.appearance.group.belowHero': 'Below the hero',
|
||||||
|
'settings.appearance.group.bottomOfPage': 'Bottom of page',
|
||||||
|
'settings.appearance.sidebarHint': 'The whole right column. Turn off and the dashboard centers.',
|
||||||
|
'settings.appearance.densityHint': 'Compact tightens spacing and padding for a denser layout that fits more on screen.',
|
||||||
};
|
};
|
||||||
|
|
||||||
export default settings;
|
export default settings;
|
||||||
|
|||||||
@@ -362,6 +362,10 @@ const settings: TranslationStrings = {
|
|||||||
'settings.appearance.widget.daysTraveled': 'Days traveled',
|
'settings.appearance.widget.daysTraveled': 'Days traveled',
|
||||||
'settings.appearance.widget.distanceFlown': 'Distance flown',
|
'settings.appearance.widget.distanceFlown': 'Distance flown',
|
||||||
'settings.appearance.reset': 'Reset to defaults',
|
'settings.appearance.reset': 'Reset to defaults',
|
||||||
|
'settings.appearance.group.belowHero': 'Below the hero',
|
||||||
|
'settings.appearance.group.bottomOfPage': 'Bottom of page',
|
||||||
|
'settings.appearance.sidebarHint': 'The whole right column. Turn off and the dashboard centers.',
|
||||||
|
'settings.appearance.densityHint': 'Compact tightens spacing and padding for a denser layout that fits more on screen.',
|
||||||
};
|
};
|
||||||
|
|
||||||
export default settings;
|
export default settings;
|
||||||
|
|||||||
@@ -377,6 +377,10 @@ const settings: TranslationStrings = {
|
|||||||
'settings.appearance.widget.daysTraveled': 'Days traveled',
|
'settings.appearance.widget.daysTraveled': 'Days traveled',
|
||||||
'settings.appearance.widget.distanceFlown': 'Distance flown',
|
'settings.appearance.widget.distanceFlown': 'Distance flown',
|
||||||
'settings.appearance.reset': 'Reset to defaults',
|
'settings.appearance.reset': 'Reset to defaults',
|
||||||
|
'settings.appearance.group.belowHero': 'Below the hero',
|
||||||
|
'settings.appearance.group.bottomOfPage': 'Bottom of page',
|
||||||
|
'settings.appearance.sidebarHint': 'The whole right column. Turn off and the dashboard centers.',
|
||||||
|
'settings.appearance.densityHint': 'Compact tightens spacing and padding for a denser layout that fits more on screen.',
|
||||||
};
|
};
|
||||||
|
|
||||||
export default settings;
|
export default settings;
|
||||||
|
|||||||
@@ -385,6 +385,10 @@ const settings: TranslationStrings = {
|
|||||||
'settings.appearance.widget.daysTraveled': 'Days traveled',
|
'settings.appearance.widget.daysTraveled': 'Days traveled',
|
||||||
'settings.appearance.widget.distanceFlown': 'Distance flown',
|
'settings.appearance.widget.distanceFlown': 'Distance flown',
|
||||||
'settings.appearance.reset': 'Reset to defaults',
|
'settings.appearance.reset': 'Reset to defaults',
|
||||||
|
'settings.appearance.group.belowHero': 'Below the hero',
|
||||||
|
'settings.appearance.group.bottomOfPage': 'Bottom of page',
|
||||||
|
'settings.appearance.sidebarHint': 'The whole right column. Turn off and the dashboard centers.',
|
||||||
|
'settings.appearance.densityHint': 'Compact tightens spacing and padding for a denser layout that fits more on screen.',
|
||||||
};
|
};
|
||||||
|
|
||||||
export default settings;
|
export default settings;
|
||||||
|
|||||||
@@ -386,6 +386,10 @@ const settings: TranslationStrings = {
|
|||||||
'settings.appearance.widget.daysTraveled': 'Days traveled',
|
'settings.appearance.widget.daysTraveled': 'Days traveled',
|
||||||
'settings.appearance.widget.distanceFlown': 'Distance flown',
|
'settings.appearance.widget.distanceFlown': 'Distance flown',
|
||||||
'settings.appearance.reset': 'Reset to defaults',
|
'settings.appearance.reset': 'Reset to defaults',
|
||||||
|
'settings.appearance.group.belowHero': 'Below the hero',
|
||||||
|
'settings.appearance.group.bottomOfPage': 'Bottom of page',
|
||||||
|
'settings.appearance.sidebarHint': 'The whole right column. Turn off and the dashboard centers.',
|
||||||
|
'settings.appearance.densityHint': 'Compact tightens spacing and padding for a denser layout that fits more on screen.',
|
||||||
};
|
};
|
||||||
|
|
||||||
export default settings;
|
export default settings;
|
||||||
|
|||||||
@@ -387,6 +387,10 @@ const settings: TranslationStrings = {
|
|||||||
'settings.appearance.widget.daysTraveled': 'Days traveled',
|
'settings.appearance.widget.daysTraveled': 'Days traveled',
|
||||||
'settings.appearance.widget.distanceFlown': 'Distance flown',
|
'settings.appearance.widget.distanceFlown': 'Distance flown',
|
||||||
'settings.appearance.reset': 'Reset to defaults',
|
'settings.appearance.reset': 'Reset to defaults',
|
||||||
|
'settings.appearance.group.belowHero': 'Below the hero',
|
||||||
|
'settings.appearance.group.bottomOfPage': 'Bottom of page',
|
||||||
|
'settings.appearance.sidebarHint': 'The whole right column. Turn off and the dashboard centers.',
|
||||||
|
'settings.appearance.densityHint': 'Compact tightens spacing and padding for a denser layout that fits more on screen.',
|
||||||
};
|
};
|
||||||
|
|
||||||
export default settings;
|
export default settings;
|
||||||
|
|||||||
@@ -382,6 +382,10 @@ const settings: TranslationStrings = {
|
|||||||
'settings.appearance.widget.daysTraveled': 'Days traveled',
|
'settings.appearance.widget.daysTraveled': 'Days traveled',
|
||||||
'settings.appearance.widget.distanceFlown': 'Distance flown',
|
'settings.appearance.widget.distanceFlown': 'Distance flown',
|
||||||
'settings.appearance.reset': 'Reset to defaults',
|
'settings.appearance.reset': 'Reset to defaults',
|
||||||
|
'settings.appearance.group.belowHero': 'Below the hero',
|
||||||
|
'settings.appearance.group.bottomOfPage': 'Bottom of page',
|
||||||
|
'settings.appearance.sidebarHint': 'The whole right column. Turn off and the dashboard centers.',
|
||||||
|
'settings.appearance.densityHint': 'Compact tightens spacing and padding for a denser layout that fits more on screen.',
|
||||||
};
|
};
|
||||||
|
|
||||||
export default settings;
|
export default settings;
|
||||||
|
|||||||
@@ -382,6 +382,10 @@ const settings: TranslationStrings = {
|
|||||||
'settings.appearance.widget.daysTraveled': 'Days traveled',
|
'settings.appearance.widget.daysTraveled': 'Days traveled',
|
||||||
'settings.appearance.widget.distanceFlown': 'Distance flown',
|
'settings.appearance.widget.distanceFlown': 'Distance flown',
|
||||||
'settings.appearance.reset': 'Reset to defaults',
|
'settings.appearance.reset': 'Reset to defaults',
|
||||||
|
'settings.appearance.group.belowHero': 'Below the hero',
|
||||||
|
'settings.appearance.group.bottomOfPage': 'Bottom of page',
|
||||||
|
'settings.appearance.sidebarHint': 'The whole right column. Turn off and the dashboard centers.',
|
||||||
|
'settings.appearance.densityHint': 'Compact tightens spacing and padding for a denser layout that fits more on screen.',
|
||||||
};
|
};
|
||||||
|
|
||||||
export default settings;
|
export default settings;
|
||||||
|
|||||||
@@ -386,6 +386,10 @@ const settings: TranslationStrings = {
|
|||||||
'settings.appearance.widget.daysTraveled': 'Days traveled',
|
'settings.appearance.widget.daysTraveled': 'Days traveled',
|
||||||
'settings.appearance.widget.distanceFlown': 'Distance flown',
|
'settings.appearance.widget.distanceFlown': 'Distance flown',
|
||||||
'settings.appearance.reset': 'Reset to defaults',
|
'settings.appearance.reset': 'Reset to defaults',
|
||||||
|
'settings.appearance.group.belowHero': 'Below the hero',
|
||||||
|
'settings.appearance.group.bottomOfPage': 'Bottom of page',
|
||||||
|
'settings.appearance.sidebarHint': 'The whole right column. Turn off and the dashboard centers.',
|
||||||
|
'settings.appearance.densityHint': 'Compact tightens spacing and padding for a denser layout that fits more on screen.',
|
||||||
};
|
};
|
||||||
|
|
||||||
export default settings;
|
export default settings;
|
||||||
|
|||||||
@@ -366,6 +366,10 @@ const settings: TranslationStrings = {
|
|||||||
'settings.appearance.widget.daysTraveled': 'Days traveled',
|
'settings.appearance.widget.daysTraveled': 'Days traveled',
|
||||||
'settings.appearance.widget.distanceFlown': 'Distance flown',
|
'settings.appearance.widget.distanceFlown': 'Distance flown',
|
||||||
'settings.appearance.reset': 'Reset to defaults',
|
'settings.appearance.reset': 'Reset to defaults',
|
||||||
|
'settings.appearance.group.belowHero': 'Below the hero',
|
||||||
|
'settings.appearance.group.bottomOfPage': 'Bottom of page',
|
||||||
|
'settings.appearance.sidebarHint': 'The whole right column. Turn off and the dashboard centers.',
|
||||||
|
'settings.appearance.densityHint': 'Compact tightens spacing and padding for a denser layout that fits more on screen.',
|
||||||
};
|
};
|
||||||
|
|
||||||
export default settings;
|
export default settings;
|
||||||
|
|||||||
@@ -364,6 +364,10 @@ const settings: TranslationStrings = {
|
|||||||
'settings.appearance.widget.daysTraveled': 'Days traveled',
|
'settings.appearance.widget.daysTraveled': 'Days traveled',
|
||||||
'settings.appearance.widget.distanceFlown': 'Distance flown',
|
'settings.appearance.widget.distanceFlown': 'Distance flown',
|
||||||
'settings.appearance.reset': 'Reset to defaults',
|
'settings.appearance.reset': 'Reset to defaults',
|
||||||
|
'settings.appearance.group.belowHero': 'Below the hero',
|
||||||
|
'settings.appearance.group.bottomOfPage': 'Bottom of page',
|
||||||
|
'settings.appearance.sidebarHint': 'The whole right column. Turn off and the dashboard centers.',
|
||||||
|
'settings.appearance.densityHint': 'Compact tightens spacing and padding for a denser layout that fits more on screen.',
|
||||||
};
|
};
|
||||||
|
|
||||||
export default settings;
|
export default settings;
|
||||||
|
|||||||
Reference in New Issue
Block a user