fix: (80bf052) use correct language in tooltip

This commit is contained in:
Isaac
2024-05-23 22:36:37 +01:00
parent ca6995cbca
commit 5ec51829ad

View File

@@ -29,7 +29,10 @@ function Refresh() {
text = variables.getMessage('modals.main.settings.sections.quote.title');
break;
case 'quotebackground':
text = new Intl.ListFormat('en-GB', { style: 'long', type: 'conjunction' }).format([
text = new Intl.ListFormat(localStorage.getItem('language')?.replace(/_/gm, '-') || 'en-GB', {
style: 'long',
type: 'conjunction',
}).format([
variables.getMessage('modals.main.settings.sections.quote.title'),
variables.getMessage('modals.main.settings.sections.background.title'),
]);