Skip to content

Commit

Permalink
Merge pull request #2487 from ever-co/translations/shortcut-modal
Browse files Browse the repository at this point in the history
[Translations] Add translations to the shortcut modal
  • Loading branch information
evereq authored May 4, 2024
2 parents d102cb0 + 8ed6eec commit a0cd86f
Show file tree
Hide file tree
Showing 28 changed files with 271 additions and 11 deletions.
16 changes: 8 additions & 8 deletions apps/web/app/hooks/useHotkeys.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ export const HostKeys = {

export const HostKeysMapping = [
{
heading: 'Help',
heading: 'HELP',
keySequence: [
{
label: 'To Open Shortcut List',
label:'TO_OPEN_SHORTCUT_LIST',
sequence: {
MAC: ['H'],
OTHER: ['H']
Expand All @@ -37,17 +37,17 @@ export const HostKeysMapping = [
]
},
{
heading: 'Timer',
heading: 'TIMER',
keySequence: [
{
label: 'Start Timer',
label: 'START_TIMER',
sequence: {
MAC: ['Ctrl(⌃)', 'Opt(⌥)', ']'],
OTHER: ['Ctrl', 'Alt', ']']
}
},
{
label: 'Stop Timer',
label: 'STOP_TIMER',
sequence: {
MAC: ['Ctrl(⌃)', 'Opt(⌥)', '['],
OTHER: ['Ctrl', 'Alt', '[']
Expand All @@ -56,17 +56,17 @@ export const HostKeysMapping = [
]
},
{
heading: 'Task',
heading: 'TASK',
keySequence: [
{
label: 'Assign Task',
label: 'ASSIGN_TASK',
sequence: {
MAC: ['A'],
OTHER: ['A']
}
},
{
label: 'Create Task',
label: 'CREATE_TASK',
sequence: {
MAC: ['C'],
OTHER: ['C']
Expand Down
6 changes: 3 additions & 3 deletions apps/web/lib/components/keyboard-shortcuts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Dialog, DialogContent, DialogDescription, DialogHeader, DialogTitle } f
import { useCallback } from 'react';
import { Button } from './button';
import { Tooltip } from './tooltip';
import { useTranslations } from 'next-intl';
import { DottedLanguageObjectStringPaths, useTranslations } from 'next-intl';
import { LineDotBoxIcon } from 'assets/svg';

export function KeyboardShortcuts() {
Expand Down Expand Up @@ -40,7 +40,7 @@ export function KeyboardShortcuts() {
{HostKeysMapping.map((item, index) => (
<div key={index} className="flex flex-col gap-2">
<p className="text-base font-normal text-black dark:text-light--theme-light">
{item.heading}
{t(`hotkeys.${item.heading}` as DottedLanguageObjectStringPaths)}
</p>

{item.keySequence.map((keySeq, keySeqIndex) => (
Expand All @@ -49,7 +49,7 @@ export function KeyboardShortcuts() {
key={`key-seq-${keySeqIndex}`}
>
<div>
<p className="text-sm font-normal">{keySeq.label}</p>
<p className="text-sm font-normal">{t(`hotkeys.${keySeq.label}` as DottedLanguageObjectStringPaths)}</p>
</div>
<div className="flex flex-row gap-2">
{[...(os === 'Mac' ? keySeq.sequence.MAC : keySeq.sequence.OTHER)].map(
Expand Down
10 changes: 10 additions & 0 deletions apps/web/messages/ar.json
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,16 @@
"NO_USERS_PAUSED_WORK": "لم يتم إيقاف أي مستخدم مؤقتًا عن العمل في الوقت الحالي",
"NO_USERS_IDLE": "لا يوجد مستخدمين خاملين في الوقت الحالي"
},
"hotkeys":{
"HELP": "مساعدة",
"TO_OPEN_SHORTCUT_LIST": "لفتح قائمة الاختصارات",
"TIMER": "المؤقت",
"START_TIMER": "بدء المؤقت",
"STOP_TIMER": "إيقاف المؤقت",
"TASK": "المهمة",
"ASSIGN_TASK": "تعيين المهمة",
"CREATE_TASK": "إنشاء مهمة"
},
"alerts": {
"REAL_TIME_ON_WORKING": "نحن نعمل على المزامنة في الوقت الحقيقي في الوقت الحالي، يرجى التحقق من هذه الميزة لاحقًا",
"ALERT_DELETE_ACCOUNT": "سيتم إزالة الحساب من جميع الفرق، باستثناء حيث أنت المدير فقط",
Expand Down
10 changes: 10 additions & 0 deletions apps/web/messages/bg.json
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,16 @@
"NO_USERS_PAUSED_WORK":"В момента няма потребители, които да са спрели работата си",
"NO_USERS_IDLE":"В момента няма неактивни потребители"
},
"hotkeys":{
"HELP": "Помощ",
"TO_OPEN_SHORTCUT_LIST": "за да отворите списъка с клавишни комбинации",
"TIMER": "Таймер",
"START_TIMER": "Старт на таймера",
"STOP_TIMER": "Спиране на таймера",
"TASK": "Задача",
"ASSIGN_TASK": "Възлагане на задача",
"CREATE_TASK": "Създаване на задача"
},
"alerts": {
"REAL_TIME_ON_WORKING": "В момента работим върху синхронизирането в реално време, моля, проверете тази функция по-късно.",
"ALERT_DELETE_ACCOUNT": "Профилът ще бъде премахнат от всички отбори, освен където сте само мениджър",
Expand Down
10 changes: 10 additions & 0 deletions apps/web/messages/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,16 @@
"NO_USERS_IDLE": "Derzeit gibt es keine inaktiven Benutzer."

},
"hotkeys":{
"HELP": "Hilfe",
"TO_OPEN_SHORTCUT_LIST": "Um die Liste der Tastenkombinationen zu öffnen",
"TIMER": "Timer",
"START_TIMER": "Timer starten",
"STOP_TIMER": "Timer stoppen",
"TASK": "Aufgabe",
"ASSIGN_TASK": "Aufgabe zuweisen",
"CREATE_TASK": "Neue Aufgabe erstellen"
},
"alerts": {
"REAL_TIME_ON_WORKING": "Wir arbeiten derzeit an der Echtzeitsynchronisierung. Bitte überprüfen Sie diese Funktion später.",
"ALERT_DELETE_ACCOUNT": "Das Konto wird von allen Teams entfernt, außer wo Sie nur Manager sind",
Expand Down
10 changes: 10 additions & 0 deletions apps/web/messages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,16 @@
"NO_USERS_PAUSED_WORK": "There are currently no users who have paused their work",
"NO_USERS_IDLE": "There are currently no inactive users"
},
"hotkeys":{
"HELP": "Help",
"TO_OPEN_SHORTCUT_LIST": "To open the shortcut list",
"TIMER": "Timer",
"START_TIMER": "Start Timer",
"STOP_TIMER": "Stop Timer",
"TASK": "Task",
"ASSIGN_TASK": "Assign Task",
"CREATE_TASK": "Create Task"
},
"alerts": {
"REAL_TIME_ON_WORKING": "We are working on Real-Time Sync at the moment, please check on this feature later.",
"ALERT_DELETE_ACCOUNT": "You will be removed from all teams, except where you are the only manager in the team",
Expand Down
10 changes: 10 additions & 0 deletions apps/web/messages/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,16 @@
"NO_USERS_PAUSED_WORK": "Actualmente no hay usuarios que hayan dejado de trabajar",
"NO_USERS_IDLE": "Actualmente no hay usuarios inactivos"
},
"hotkeys":{
"HELP": "Ayuda",
"TO_OPEN_SHORTCUT_LIST": "Para abrir la lista de atajos",
"TIMER": "Temporizador",
"START_TIMER": "Iniciar temporizador",
"STOP_TIMER": "Detener temporizador",
"TASK": "Tarea",
"ASSIGN_TASK": "Asignar tarea",
"CREATE_TASK": "Crear tarea"
},
"alerts": {
"REAL_TIME_ON_WORKING": "Estamos trabajando en la sincronización en tiempo real en este momento; verifique esta función más adelante.",
"ALERT_DELETE_ACCOUNT": "La cuenta será eliminada de todos los equipos, excepto donde eres sólo el administrador",
Expand Down
10 changes: 10 additions & 0 deletions apps/web/messages/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,16 @@
"NO_USERS_PAUSED_WORK": "Il n'y a actuellement aucun utilisateur qui a mis en pause son travail",
"NO_USERS_IDLE": "Il n'y a actuellement aucun utilisateur inactif"
},
"hotkeys":{
"HELP": "Aide",
"TO_OPEN_SHORTCUT_LIST": "Pour ouvrir la liste des raccourcis",
"TIMER": "Chronomètre",
"START_TIMER": "Démarrer le chronomètre",
"STOP_TIMER": "Arrêter le chronomètre",
"TASK": "Tâche",
"ASSIGN_TASK": "Assigner la tâche",
"CREATE_TASK": "Créer une tâche"
},
"alerts": {
"REAL_TIME_ON_WORKING": "Nous travaillons actuellement sur la synchronisation en temps réel, veuillez vérifier cette fonctionnalité plus tard.",
"ALERT_DELETE_ACCOUNT": "Le compte sera supprimé de toutes les équipes, sauf si vous êtes uniquement le gestionnaire",
Expand Down
10 changes: 10 additions & 0 deletions apps/web/messages/he.json
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,16 @@
"NO_USERS_PAUSED_WORK": "כרגע אין משתמשים שהפסיקו את עבודתם",
"NO_USERS_IDLE": "כרגע אין משתמשים לא פעילים"
},
"hotkeys":{
"HELP": "עזרה",
"TO_OPEN_SHORTCUT_LIST": "כדי לפתוח את רשימת הקיצורים",
"TIMER": "טיימר",
"START_TIMER": "התחל טיימר",
"STOP_TIMER": "עצור טיימר",
"TASK": "משימה",
"ASSIGN_TASK": "הקצה משימה",
"CREATE_TASK": "צור משימה"
},
"alerts": {
"REAL_TIME_ON_WORKING": "אנחנו עובדים על סנכרון בזמן אמת כרגע, אנא בדוק את התכונה הזו מאוחר יותר.",
"ALERT_DELETE_ACCOUNT": "החשבון יוסר מכל הצוותים, למעט היכן שאתה רק המנהל",
Expand Down
10 changes: 10 additions & 0 deletions apps/web/messages/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,16 @@
"NO_USERS_PAUSED_WORK": "Al momento non ci sono utenti che hanno interrotto il proprio lavoro",
"NO_USERS_IDLE": "Al momento non ci sono utenti inattivi"
},
"hotkeys":{
"HELP": "Aiuto",
"TO_OPEN_SHORTCUT_LIST": "Per aprire la lista delle scorciatoie",
"TIMER": "Timer",
"START_TIMER": "Avvia Timer",
"STOP_TIMER": "Ferma Timer",
"TASK": "Compito",
"ASSIGN_TASK": "Assegna Compito",
"CREATE_TASK": "Crea Compito"
},
"alerts": {
"REAL_TIME_ON_WORKING": "Stiamo lavorando alla sincronizzazione in tempo reale al momento, controlla questa funzionalità più tardi.",
"ALERT_DELETE_ACCOUNT": "Sarai rimosso da tutti i team, tranne quelli in cui sei l'unico responsabile del team",
Expand Down
10 changes: 10 additions & 0 deletions apps/web/messages/nl.json
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,16 @@
"NO_USERS_PAUSED_WORK": "Er zijn momenteel geen gebruikers die hun werk hebben stopgezet",
"NO_USERS_IDLE": "Er zijn momenteel geen inactieve gebruikers"
},
"hotkeys":{
"HELP": "Help",
"TO_OPEN_SHORTCUT_LIST": "Om de sneltoetsenlijst te openen",
"TIMER": "Timer",
"START_TIMER": "Start de timer",
"STOP_TIMER": "Stop de timer",
"TASK": "Taak",
"ASSIGN_TASK": "Taak toewijzen",
"CREATE_TASK": "Nieuwe taak maken"
},
"alerts": {
"REAL_TIME_ON_WORKING": "We werken momenteel aan Real-Time Sync. Bekijk deze functie later opnieuw.",
"ALERT_DELETE_ACCOUNT": "Account wordt verwijderd van alle teams, behalve waar u alleen manager bent",
Expand Down
10 changes: 10 additions & 0 deletions apps/web/messages/pl.json
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,16 @@
"NO_USERS_PAUSED_WORK": "Obecnie nie ma użytkowników, którzy przerwali pracę",
"NO_USERS_IDLE": "Obecnie nie ma nieaktywnych użytkowników"
},
"hotkeys":{
"HELP": "Pomoc",
"TO_OPEN_SHORTCUT_LIST": "Aby otworzyć listę skrótów",
"TIMER": "Timer",
"START_TIMER": "Rozpocznij Timer",
"STOP_TIMER": "Zatrzymaj Timer",
"TASK": "Zadanie",
"ASSIGN_TASK": "Przypisz Zadanie",
"CREATE_TASK": "Utwórz Zadanie"
},
"alerts": {
"REAL_TIME_ON_WORKING": "W tej chwili pracujemy nad synchronizacją w czasie rzeczywistym. Sprawdź tę funkcję później.",
"ALERT_DELETE_ACCOUNT": "Zostaniesz usunięty z wszystkich zespołów, z wyjątkiem sytuacji, gdy jesteś jedynym menedżerem w zespole",
Expand Down
10 changes: 10 additions & 0 deletions apps/web/messages/pt.json
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,16 @@
"NOT_FOUND": "Não encontrado",
"PAGE_NOT_FOUND": "Página não encontrada"
},
"hotkeys":{
"HELP": "Ajuda",
"TO_OPEN_SHORTCUT_LIST": "Para abrir a lista de atalhos",
"TIMER": "Temporizador",
"START_TIMER": "Iniciar Temporizador",
"STOP_TIMER": "Parar Temporizador",
"TASK": "Tarefa",
"ASSIGN_TASK": "Atribuir Tarefa",
"CREATE_TASK": "Criar Tarefa"
},
"alerts": {
"REAL_TIME_ON_WORKING": "Estamos trabalhando na sincronização em tempo real no momento. Verifique esse recurso mais tarde.",
"ALERT_DELETE_ACCOUNT": "Você será removido de todas as equipes, exceto onde você é o único gerente na equipe",
Expand Down
10 changes: 10 additions & 0 deletions apps/web/messages/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,16 @@
"NO_USERS_PAUSED_WORK": "На данный момент нет пользователей, прекративших свою работу",
"NO_USERS_IDLE": "На данный момент неактивных пользователей нет"
},
"hotkeys":{
"HELP": "Помощь",
"TO_OPEN_SHORTCUT_LIST": "Чтобы открыть список горячих клавиш",
"TIMER": "Таймер",
"START_TIMER": "Запустить таймер",
"STOP_TIMER": "Остановить таймер",
"TASK": "Задача",
"ASSIGN_TASK": "Назначить задачу",
"CREATE_TASK": "Создать задачу"
},
"alerts": {
"REAL_TIME_ON_WORKING": "В настоящее время мы работаем над синхронизацией в реальном времени, пожалуйста, проверьте эту функцию позже.",
"ALERT_DELETE_ACCOUNT": "Вы будете удалены из всех команд, кроме тех, где вы являетесь единственным управляющим",
Expand Down
10 changes: 10 additions & 0 deletions apps/web/messages/zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,16 @@
"NO_USERS_PAUSED_WORK": "目前还没有用户停止工作",
"NO_USERS_IDLE": "目前没有不活跃用户"
},
"hotkeys":{
"HELP": "帮助",
"TO_OPEN_SHORTCUT_LIST": "打开快捷键列表",
"TIMER": "计时器",
"START_TIMER": "开始计时",
"STOP_TIMER": "停止计时",
"TASK": "任务",
"ASSIGN_TASK": "分配任务",
"CREATE_TASK": "创建任务"
},
"alerts": {
"REAL_TIME_ON_WORKING": "我們目前正在開發即時同步功能,請稍後查看此功能。",
"ALERT_DELETE_ACCOUNT": "账户将从所有团队中移除,您作为管理员的团队除外",
Expand Down
10 changes: 10 additions & 0 deletions apps/web/public/locales/ar/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,16 @@
"NO_USERS_PAUSED_WORK": "لم يتم إيقاف أي مستخدم مؤقتًا عن العمل في الوقت الحالي",
"NO_USERS_IDLE": "لا يوجد مستخدمين خاملين في الوقت الحالي"
},
"hotkeys":{
"HELP": "مساعدة",
"TO_OPEN_SHORTCUT_LIST": "لفتح قائمة الاختصارات",
"TIMER": "المؤقت",
"START_TIMER": "بدء المؤقت",
"STOP_TIMER": "إيقاف المؤقت",
"TASK": "المهمة",
"ASSIGN_TASK": "تعيين المهمة",
"CREATE_TASK": "إنشاء مهمة"
},
"alerts": {
"REAL_TIME_ON_WORKING": "نحن نعمل على المزامنة في الوقت الحقيقي في الوقت الحالي، يرجى التحقق من هذه الميزة لاحقًا.",
"ALERT_DELETE_ACCOUNT": "سيتم إزالة الحساب من جميع الفرق، باستثناء حيث أنت المدير فقط",
Expand Down
10 changes: 10 additions & 0 deletions apps/web/public/locales/bg/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,16 @@
"NO_USERS_PAUSED_WORK":"В момента няма потребители, които да са спрели работата си",
"NO_USERS_IDLE":"В момента няма неактивни потребители"
},
"hotkeys":{
"HELP": "Помощ",
"TO_OPEN_SHORTCUT_LIST": "за да отворите списъка с клавишни комбинации",
"TIMER": "Таймер",
"START_TIMER": "за да стартирате таймера",
"STOP_TIMER": "за да спрете таймера",
"TASK": "Задача",
"ASSIGN_TASK": "за да възложите задача",
"CREATE_TASK": "за да създадете задача"
},
"alerts": {
"REAL_TIME_ON_WORKING": "В момента работим върху синхронизирането в реално време, моля, проверете тази функция по-късно.",
"ALERT_DELETE_ACCOUNT": "Профилът ще бъде премахнат от всички отбори, освен където сте само мениджър",
Expand Down
10 changes: 10 additions & 0 deletions apps/web/public/locales/de/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,16 @@
"NO_USERS_PAUSED_WORK": "Derzeit gibt es keine Benutzer, die ihre Arbeit eingestellt haben",
"NO_USERS_IDLE": "Derzeit gibt es keine inaktiven Benutzer"
},
"hotkeys":{
"HELP": "Hilfe",
"TO_OPEN_SHORTCUT_LIST": "Um die Liste der Tastenkombinationen zu öffnen",
"TIMER": "Timer",
"START_TIMER": "Timer starten",
"STOP_TIMER": "Timer stoppen",
"TASK": "Aufgabe",
"ASSIGN_TASK": "Aufgabe zuweisen",
"CREATE_TASK": "Neue Aufgabe erstellen"
},
"alerts": {
"REAL_TIME_ON_WORKING": "Wir arbeiten derzeit an der Echtzeitsynchronisierung. Bitte überprüfen Sie diese Funktion später.",
"ALERT_DELETE_ACCOUNT": "Das Konto wird von allen Teams entfernt, außer wo Sie nur Manager sind",
Expand Down
10 changes: 10 additions & 0 deletions apps/web/public/locales/en/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,16 @@
"NO_USERS_PAUSED_WORK": "There are currently no users who have paused their work",
"NO_USERS_IDLE": "There are currently no inactive users"
},
"hotkeys":{
"HELP": "Help",
"TO_OPEN_SHORTCUT_LIST": "To open the shortcut list",
"TIMER": "Timer",
"START_TIMER": "Start Timer",
"STOP_TIMER": "Stop Timer",
"TASK": "Task",
"ASSIGN_TASK": "Assign Task",
"CREATE_TASK": "Create Task"
},
"alerts": {
"REAL_TIME_ON_WORKING": "We are working on Real-Time Sync at the moment, please check on this feature later.",
"ALERT_DELETE_ACCOUNT": "You will be removed from all teams, except where you are the only manager in the team",
Expand Down
10 changes: 10 additions & 0 deletions apps/web/public/locales/es/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,16 @@
"NO_USERS_PAUSED_WORK": "Actualmente no hay usuarios que hayan dejado de trabajar",
"NO_USERS_IDLE": "Actualmente no hay usuarios inactivos"
},
"hotkeys":{
"HELP": "Ayuda",
"TO_OPEN_SHORTCUT_LIST": "Para abrir la lista de atajos",
"TIMER": "Cronómetro",
"START_TIMER": "Iniciar cronómetro",
"STOP_TIMER": "Detener cronómetro",
"TASK": "Tarea",
"ASSIGN_TASK": "Asignar tarea",
"CREATE_TASK": "Crear tarea"
},
"alerts": {
"REAL_TIME_ON_WORKING": "Estamos trabajando en la sincronización en tiempo real en este momento; verifique esta función más adelante.",
"ALERT_DELETE_ACCOUNT": "La cuenta será eliminada de todos los equipos, excepto donde eres sólo el administrador",
Expand Down
Loading

0 comments on commit a0cd86f

Please sign in to comment.