feat(translations): support for new strings

This commit is contained in:
David Ralph
2022-08-23 10:59:20 +01:00
parent 5ddd26d492
commit 8c6e62e1b4
13 changed files with 218 additions and 35 deletions

View File

@@ -149,7 +149,13 @@ export default class Stats extends PureComponent {
</span>
<br />
<span className="subtitle">
{this.getUnlockedCount()}/{this.state.achievements.length} Unlocked
{variables.language.getMessage(
variables.languagecode,
'modals.main.settings.sections.stats.unlocked',
{
count: this.getUnlockedCount() + '/' + this.state.achievements.length,
},
)}
</span>
<div className="achievements">
{this.state.achievements.map((achievement, index) => {

View File

@@ -167,11 +167,15 @@ export default class WelcomeSections extends PureComponent {
<FaDiscord />
</div>
<div className="text">
<span className="title">Join our Discord</span>
<span className="subtitle">Talk with the Mue community and developers</span>
<span className="title">
{this.getMessage('modals.welcome.sections.intro.notices.discord_title')}
</span>
<span className="subtitle">
{this.getMessage('modals.welcome.sections.intro.notices.discord_description')}
</span>
</div>
<a href="https://discord.gg/zv8C9F8" target="_blank" rel="noopener noreferrer">
<MdOpenInNew /> Join
<MdOpenInNew /> {this.getMessage('modals.welcome.sections.intro.notices.discord_join')}
</a>
</div>
<div className="welcomeNotice">
@@ -179,11 +183,15 @@ export default class WelcomeSections extends PureComponent {
<FaGithub />
</div>
<div className="text">
<span className="title">Contribute on GitHub</span>
<span className="subtitle">Report bugs, add features or donate</span>
<span className="title">
{this.getMessage('modals.welcome.sections.intro.notices.github_title')}
</span>
<span className="subtitle">
{this.getMessage('modals.welcome.sections.intro.notices.github_description')}
</span>
</div>
<a href="https://github.com/mue/mue" target="_blank" rel="noopener noreferrer">
<MdOpenInNew /> Open
<MdOpenInNew /> {this.getMessage('modals.welcome.sections.intro.notices.github_open')}
</a>
</div>
</>
@@ -241,20 +249,25 @@ export default class WelcomeSections extends PureComponent {
const style = (
<>
<span className="mainTitle">Choose a theme</span>
<span className="mainTitle">
{this.getMessage('modals.main.settings.sections.appearance.style.title')}
</span>
<span className="subtitle">
Mue currently offers the choice between the legacy styling and the newly released modern
styling.
{this.getMessage('modals.main.settings.sections.appearance.style.description')}
</span>
<div className="themesToggleArea">
<div className="options">
<div className={this.state.legacyStyle} onClick={() => this.changeStyle('legacy')}>
<MdArchive />
<span>Legacy</span>
<span>
{this.getMessage('modals.main.settings.sections.appearance.style.legacy')}
</span>
</div>
<div className={this.state.newStyle} onClick={() => this.changeStyle('new')}>
<MdOutlineWhatshot />
<span>Modern</span>
<span>
{this.getMessage('modals.main.settings.sections.appearance.style.modern')}
</span>
</div>
</div>
</div>
@@ -271,7 +284,6 @@ export default class WelcomeSections extends PureComponent {
</span>
<button className="upload" onClick={() => document.getElementById('file-input').click()}>
<MdCloudUpload />
<span>{this.getMessage('modals.main.settings.buttons.import')}</span>
</button>
<FileUpload

View File

@@ -388,7 +388,8 @@
"addons_installed": "Installierte Add-ons"
},
"usage": "Nutzungsstatistiken",
"achievements": "Achievements"
"achievements": "Achievements",
"unlocked": "{count} Unlocked"
},
"keybinds": {
"title": "Tastenbindungen",
@@ -603,7 +604,15 @@
"sections": {
"intro": {
"title": "Willkommen bei Mue Tab",
"description": "Vielen Dank für die Installation, wir wünschen Ihnen viel Spaß mit unserer Erweiterung."
"description": "Vielen Dank für die Installation, wir wünschen Ihnen viel Spaß mit unserer Erweiterung.",
"notices": {
"discord_title": "Join our Discord",
"discord_description": "Talk with the Mue community and developers",
"discord_join": "Join",
"github_title": "Contribute on GitHub",
"github_description": "Report bugs, add features or donate",
"github_open": "Open"
}
},
"language": {
"title": "Wählen Sie Ihre Sprache",
@@ -614,6 +623,12 @@
"description": "Mue ist sowohl mit einem hellen als auch mit einem dunklen Erscheinungsbild erhältlich, das je nach dem Erscheinungsbild Ihres Systems automatisch eingestellt werden kann.",
"tip": "Bei der Einstellung Automatisch wird das Design auf Ihrem System verwendet. Diese Einstellung wirkt sich auf die Modalitäten und einige der Widgets aus, die auf dem Bildschirm angezeigt werden, z. B. Wetter und Notizen."
},
"style": {
"title": "Choose a style",
"description": "Mue currently offers the choice between the legacy styling and the newly released modern styling.",
"legacy": "Legacy",
"modern": "Modern"
},
"settings": {
"title": "Einstellungen importieren",
"description": "Installieren Sie Mue auf einem neuen Gerät? So können Sie Ihre alten Einstellungen importieren!",

View File

@@ -387,7 +387,8 @@
"addons_installed": "Add-ons installed"
},
"usage": "Usage Stats",
"achievements": "Achievements"
"achievements": "Achievements",
"unlocked": "{count} Unlocked"
},
"keybinds": {
"title": "Keybinds",
@@ -600,7 +601,15 @@
"sections": {
"intro": {
"title": "Welcome to Mue Tab",
"description": "Thank you for installing Mue, we hope you enjoy your time with our extension."
"description": "Thank you for installing Mue, we hope you enjoy your time with our extension.",
"notices": {
"discord_title": "Join our Discord",
"discord_description": "Talk with the Mue community and developers",
"discord_join": "Join",
"github_title": "Contribute on GitHub",
"github_description": "Report bugs, add features or donate",
"github_open": "Open"
}
},
"language": {
"title": "Choose your language",
@@ -611,6 +620,12 @@
"description": "Mue is available in both light and dark theme, or this can be automatically set depending on your system theme.",
"tip": "Using the Auto settings will use the theme on your computer. This setting will impact the modals and some of the widgets displayed on the screen, such as weather and notes."
},
"style": {
"title": "Choose a style",
"description": "Mue currently offers the choice between the legacy styling and the newly released modern styling.",
"legacy": "Legacy",
"modern": "Modern"
},
"settings": {
"title": "Import Settings",
"description": "Installing Mue on a new device? Feel free to import your old settings!",

View File

@@ -387,7 +387,8 @@
"addons_installed": "Add-ons installed"
},
"usage": "Usage Stats",
"achievements": "Achievements"
"achievements": "Achievements",
"unlocked": "{count} Unlocked"
},
"keybinds": {
"title": "Keybinds",
@@ -602,7 +603,15 @@
"sections": {
"intro": {
"title": "Welcome to Mue Tab",
"description": "Thank you for installing Mue, we hope you enjoy your time with our extension."
"description": "Thank you for installing Mue, we hope you enjoy your time with our extension.",
"notices": {
"discord_title": "Join our Discord",
"discord_description": "Talk with the Mue community and developers",
"discord_join": "Join",
"github_title": "Contribute on GitHub",
"github_description": "Report bugs, add features or donate",
"github_open": "Open"
}
},
"language": {
"title": "Choose your language",
@@ -613,6 +622,12 @@
"description": "Mue is available in both light and dark theme, or this can be automatically set depending on your system theme.",
"tip": "Using the Auto settings will use the theme on your computer. This setting will impact the modals and some of the widgets displayed on the screen, such as weather and notes."
},
"style": {
"title": "Choose a style",
"description": "Mue currently offers the choice between the legacy styling and the newly released modern styling.",
"legacy": "Legacy",
"modern": "Modern"
},
"settings": {
"title": "Import Settings",
"description": "Installing Mue on a new device? Feel free to import your old settings!",

View File

@@ -387,7 +387,8 @@
"addons_installed": "Complementos instalados"
},
"usage": "Estadísticas de uso",
"achievements": "Achievements"
"achievements": "Achievements",
"unlocked": "{count} Unlocked"
},
"keybinds": {
"title": "Asignación de teclas",
@@ -602,7 +603,15 @@
"sections": {
"intro": {
"title": "Bienvenido a Mue Tab",
"description": "Gracias por instalar Mue, esperamos que disfrute de su tiempo con nuestra extensión."
"description": "Gracias por instalar Mue, esperamos que disfrute de su tiempo con nuestra extensión.",
"notices": {
"discord_title": "Join our Discord",
"discord_description": "Talk with the Mue community and developers",
"discord_join": "Join",
"github_title": "Contribute on GitHub",
"github_description": "Report bugs, add features or donate",
"github_open": "Open"
}
},
"language": {
"title": "Elige el idioma",
@@ -613,6 +622,12 @@
"description": "Mue está disponible tanto en el tema claro como en el oscuro, también se puede configurar automáticamente en función del tema de su sistema.",
"tip": "Si utiliza la configuración automática, utilizará el tema de su ordenador. Esta configuración afectará a los modales y a algunos de los widgets que aparecen en la pantalla, como el tiempo y las notas."
},
"style": {
"title": "Choose a style",
"description": "Mue currently offers the choice between the legacy styling and the newly released modern styling.",
"legacy": "Legacy",
"modern": "Modern"
},
"settings": {
"title": "Importa los ajustes",
"description": "¿Instalando Mue en un nuevo dispositivo? No dudes en importar tu antigua configuración.",

View File

@@ -387,7 +387,8 @@
"addons_installed": "Add-ons installed"
},
"usage": "Usage Stats",
"achievements": "Achievements"
"achievements": "Achievements",
"unlocked": "{count} Unlocked"
},
"keybinds": {
"title": "Keybinds",
@@ -602,7 +603,15 @@
"sections": {
"intro": {
"title": "Bienvenue en Mue Tab",
"description": "Merci d'avoir installé Mue, nous espérons que vous apprécierez votre temps avec notre extension."
"description": "Merci d'avoir installé Mue, nous espérons que vous apprécierez votre temps avec notre extension.",
"notices": {
"discord_title": "Join our Discord",
"discord_description": "Talk with the Mue community and developers",
"discord_join": "Join",
"github_title": "Contribute on GitHub",
"github_description": "Report bugs, add features or donate",
"github_open": "Open"
}
},
"language": {
"title": "Choose your language",
@@ -613,6 +622,12 @@
"description": "Mue is available in both light and dark theme, or this can be automatically set depending on your system theme.",
"tip": "Using the Auto settings will use the theme on your computer. This setting will impact the modals and some of the widgets displayed on the screen, such as weather and notes."
},
"style": {
"title": "Choose a style",
"description": "Mue currently offers the choice between the legacy styling and the newly released modern styling.",
"legacy": "Legacy",
"modern": "Modern"
},
"settings": {
"title": "Import Settings",
"description": "Installing Mue on a new device? Feel free to import your old settings!",

View File

@@ -387,7 +387,8 @@
"addons_installed": "Add-ons ditambahkan"
},
"usage": "Statistik Penggunaan",
"achievements": "Achievements"
"achievements": "Achievements",
"unlocked": "{count} Unlocked"
},
"keybinds": {
"title": "Keybinds",
@@ -602,7 +603,15 @@
"sections": {
"intro": {
"title": "Selamat datang di Mue Tab",
"description": "Terima kasih sudah menginstal Mue, kami harap Anda dapat menikmati pengalaman bersama Mue"
"description": "Terima kasih sudah menginstal Mue, kami harap Anda dapat menikmati pengalaman bersama Mue",
"notices": {
"discord_title": "Join our Discord",
"discord_description": "Talk with the Mue community and developers",
"discord_join": "Join",
"github_title": "Contribute on GitHub",
"github_description": "Report bugs, add features or donate",
"github_open": "Open"
}
},
"language": {
"title": "Pilih bahasa",
@@ -613,6 +622,12 @@
"description": "Mue tersedia dalam tema terang dan gelap, atau kami juga bisa mengaturnya secara otomatis sesuai dengan preferensi sistem Anda.",
"tip": "Pengaturan otomatis akan menyesuaikan dengan tema komputer Anda. Pengaturan ini akan mengubah tampilan modal dan beberapa widget, seperti Cuaca dan Catatan."
},
"style": {
"title": "Choose a style",
"description": "Mue currently offers the choice between the legacy styling and the newly released modern styling.",
"legacy": "Legacy",
"modern": "Modern"
},
"settings": {
"title": "Impor Pengaturan",
"description": "Sudah pernah menginstal Mue? Yuk coba impor pengaturan lama kamu tanpa perlu mengatur ulang dari awal!",

View File

@@ -387,7 +387,8 @@
"addons_installed": "Add-ons installed"
},
"usage": "Usage Stats",
"achievements": "Achievements"
"achievements": "Achievements",
"unlocked": "{count} Unlocked"
},
"keybinds": {
"title": "Keybinds",
@@ -602,7 +603,15 @@
"sections": {
"intro": {
"title": "Welcome to Mue Tab",
"description": "Thank you for installing Mue, we hope you enjoy your time with our extension."
"description": "Thank you for installing Mue, we hope you enjoy your time with our extension.",
"notices": {
"discord_title": "Join our Discord",
"discord_description": "Talk with the Mue community and developers",
"discord_join": "Join",
"github_title": "Contribute on GitHub",
"github_description": "Report bugs, add features or donate",
"github_open": "Open"
}
},
"language": {
"title": "Choose your language",
@@ -613,6 +622,12 @@
"description": "Mue is available in both light and dark theme, or this can be automatically set depending on your system theme.",
"tip": "Using the Auto settings will use the theme on your computer. This setting will impact the modals and some of the widgets displayed on the screen, such as weather and notes."
},
"style": {
"title": "Choose a style",
"description": "Mue currently offers the choice between the legacy styling and the newly released modern styling.",
"legacy": "Legacy",
"modern": "Modern"
},
"settings": {
"title": "Import Settings",
"description": "Installing Mue on a new device? Feel free to import your old settings!",

View File

@@ -387,7 +387,8 @@
"addons_installed": "Add-ons installed"
},
"usage": "Usage Stats",
"achievements": "Achievements"
"achievements": "Achievements",
"unlocked": "{count} Unlocked"
},
"keybinds": {
"title": "Keybinds",
@@ -602,7 +603,15 @@
"sections": {
"intro": {
"title": "Welcome to Mue Tab",
"description": "Thank you for installing Mue, we hope you enjoy your time with our extension."
"description": "Thank you for installing Mue, we hope you enjoy your time with our extension.",
"notices": {
"discord_title": "Join our Discord",
"discord_description": "Talk with the Mue community and developers",
"discord_join": "Join",
"github_title": "Contribute on GitHub",
"github_description": "Report bugs, add features or donate",
"github_open": "Open"
}
},
"language": {
"title": "Choose your language",
@@ -613,6 +622,12 @@
"description": "Mue is available in both light and dark theme, or this can be automatically set depending on your system theme.",
"tip": "Using the Auto settings will use the theme on your computer. This setting will impact the modals and some of the widgets displayed on the screen, such as weather and notes."
},
"style": {
"title": "Choose a style",
"description": "Mue currently offers the choice between the legacy styling and the newly released modern styling.",
"legacy": "Legacy",
"modern": "Modern"
},
"settings": {
"title": "Import Settings",
"description": "Installing Mue on a new device? Feel free to import your old settings!",

View File

@@ -387,7 +387,8 @@
"addons_installed": "Add-ons installed"
},
"usage": "Usage Stats",
"achievements": "Achievements"
"achievements": "Achievements",
"unlocked": "{count} Unlocked"
},
"keybinds": {
"title": "Keybinds",
@@ -603,7 +604,15 @@
"sections": {
"intro": {
"title": "Welcome to Mue Tab",
"description": "Thank you for installing Mue, we hope you enjoy your time with our extension."
"description": "Thank you for installing Mue, we hope you enjoy your time with our extension.",
"notices": {
"discord_title": "Join our Discord",
"discord_description": "Talk with the Mue community and developers",
"discord_join": "Join",
"github_title": "Contribute on GitHub",
"github_description": "Report bugs, add features or donate",
"github_open": "Open"
}
},
"language": {
"title": "Choose your language",
@@ -614,6 +623,12 @@
"description": "Mue is available in both light and dark theme, or this can be automatically set depending on your system theme.",
"tip": "Using the Auto settings will use the theme on your computer. This setting will impact the modals and some of the widgets displayed on the screen, such as weather and notes."
},
"style": {
"title": "Choose a style",
"description": "Mue currently offers the choice between the legacy styling and the newly released modern styling.",
"legacy": "Legacy",
"modern": "Modern"
},
"settings": {
"title": "Import Settings",
"description": "Installing Mue on a new device? Feel free to import your old settings!",

View File

@@ -387,7 +387,8 @@
"addons_installed": "Eklentiler yüklendi."
},
"usage": "Kullanım İstatistikleri",
"achievements": "Başarılar"
"achievements": "Başarılar",
"unlocked": "{count} Unlocked"
},
"keybinds": {
"title": "Tuş Atamaları",
@@ -602,7 +603,15 @@
"sections": {
"intro": {
"title": "Mue Sekmesine Hoş Geldiniz",
"description": "Mue'yi yüklediğiniz için teşekkür ederiz, umarız uzantımızla iyi vakit geçirirsiniz."
"description": "Mue'yi yüklediğiniz için teşekkür ederiz, umarız uzantımızla iyi vakit geçirirsiniz.",
"notices": {
"discord_title": "Join our Discord",
"discord_description": "Talk with the Mue community and developers",
"discord_join": "Join",
"github_title": "Contribute on GitHub",
"github_description": "Report bugs, add features or donate",
"github_open": "Open"
}
},
"language": {
"title": "Dilinizi seçin",
@@ -613,6 +622,12 @@
"description": "Mue hem açık hem de koyu temada mevcuttur veya sistem temanıza bağlı olarak otomatik olarak ayarlanabilir.",
"tip": "Otomatik ayarları kullanmak, bilgisayarınızdaki varsayılan temayı kullanır. Bu ayar, modları ve ekranda görüntülenen hava durumu ve notlar gibi bazı widget'ları etkiler."
},
"style": {
"title": "Choose a style",
"description": "Mue currently offers the choice between the legacy styling and the newly released modern styling.",
"legacy": "Legacy",
"modern": "Modern"
},
"settings": {
"title": "Ayarları İçe Aktar",
"description": "Mue'yi yeni bir cihaza mı yüklüyorsunuz? Eski ayarlarınızı almaktan çekinmeyin!",

View File

@@ -387,7 +387,8 @@
"addons_installed": "添加的插件"
},
"usage": "启用统计",
"achievements": "Achievements"
"achievements": "Achievements",
"unlocked": "{count} Unlocked"
},
"keybinds": {
"title": "快捷键",
@@ -602,7 +603,15 @@
"sections": {
"intro": {
"title": "欢迎使用 Mue 新标签插件",
"description": "感谢您的安装。祝您使用愉快。"
"description": "感谢您的安装。祝您使用愉快。",
"notices": {
"discord_title": "Join our Discord",
"discord_description": "Talk with the Mue community and developers",
"discord_join": "Join",
"github_title": "Contribute on GitHub",
"github_description": "Report bugs, add features or donate",
"github_open": "Open"
}
},
"language": {
"title": "更改语言",
@@ -613,6 +622,12 @@
"description": "Mue 支持日间和夜间主题,或者设置为自动选择,主题将跟随系统主题自动切换",
"tip": "使用自动选择将使用您的电脑的主题。这个设置也会影响设置界面和一些小组件的主题,比如天气和便签。"
},
"style": {
"title": "Choose a style",
"description": "Mue currently offers the choice between the legacy styling and the newly released modern styling.",
"legacy": "Legacy",
"modern": "Modern"
},
"settings": {
"title": "导入设置",
"description": "在新设备上安装 Mue? 可以直接导入之前的设置!",