Skip to content

Commit

Permalink
Refactor tooltip content for improved clarity and emphasis in English…
Browse files Browse the repository at this point in the history
… and Spanish translations
  • Loading branch information
ishpaul777 committed Dec 13, 2024
1 parent aaaf230 commit e2645c7
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 29 deletions.
17 changes: 8 additions & 9 deletions src/components/ProductTrainingContext/TOOLTIPS.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ const TOOLTIPS: Record<ProductTrainingTooltipName, TooltipData> = {
},
[GLOBAL_CREATE_TOOLTIP]: {
content: [
{text: 'productTrainingTooltip.globalCreateTooltip.part1', isBold: false},
{text: 'productTrainingTooltip.globalCreateTooltip.part2', isBold: true},
{text: 'productTrainingTooltip.globalCreateTooltip.part1', isBold: true},
{text: 'productTrainingTooltip.globalCreateTooltip.part2', isBold: false},
{text: 'productTrainingTooltip.globalCreateTooltip.part3', isBold: false},
],
onHideTooltip: () => dismissProductTraining(GLOBAL_CREATE_TOOLTIP),
Expand All @@ -72,9 +72,8 @@ const TOOLTIPS: Record<ProductTrainingTooltipName, TooltipData> = {
},
[WORKSAPCE_CHAT_CREATE]: {
content: [
{text: 'productTrainingTooltip.workspaceChatCreate.part1', isBold: false},
{text: 'productTrainingTooltip.workspaceChatCreate.part2', isBold: true},
{text: 'productTrainingTooltip.workspaceChatCreate.part3', isBold: false},
{text: 'productTrainingTooltip.workspaceChatCreate.part1', isBold: true},
{text: 'productTrainingTooltip.workspaceChatCreate.part2', isBold: false},
],
onHideTooltip: () => dismissProductTraining(WORKSAPCE_CHAT_CREATE),
name: WORKSAPCE_CHAT_CREATE,
Expand All @@ -83,8 +82,8 @@ const TOOLTIPS: Record<ProductTrainingTooltipName, TooltipData> = {
},
[SEARCH_FILTER_BUTTON_TOOLTIP]: {
content: [
{text: 'productTrainingTooltip.searchFilterButtonTooltip.part1', isBold: false},
{text: 'productTrainingTooltip.searchFilterButtonTooltip.part2', isBold: true},
{text: 'productTrainingTooltip.searchFilterButtonTooltip.part1', isBold: true},
{text: 'productTrainingTooltip.searchFilterButtonTooltip.part2', isBold: false},
],
onHideTooltip: () => dismissProductTraining(SEARCH_FILTER_BUTTON_TOOLTIP),
name: SEARCH_FILTER_BUTTON_TOOLTIP,
Expand All @@ -104,9 +103,9 @@ const TOOLTIPS: Record<ProductTrainingTooltipName, TooltipData> = {
},
[LHN_WORKSPACE_CHAT_TOOLTIP]: {
content: [
{text: 'productTrainingTooltip.workspaceChatTooltip.part1', isBold: false},
{text: 'productTrainingTooltip.workspaceChatTooltip.part1', isBold: true},
{text: 'productTrainingTooltip.workspaceChatTooltip.part2', isBold: false},
{text: 'productTrainingTooltip.workspaceChatTooltip.part3', isBold: true},
{text: 'productTrainingTooltip.workspaceChatTooltip.part3', isBold: false},
],
onHideTooltip: () => dismissProductTraining(LHN_WORKSPACE_CHAT_TOOLTIP),
name: LHN_WORKSPACE_CHAT_TOOLTIP,
Expand Down
16 changes: 8 additions & 8 deletions src/languages/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5471,18 +5471,18 @@ const translations = {
},
bottomNavInboxTooltip: {
part1: 'Your to-do list',
part2: ' comes with 🟢 for',
part3: '\nactions to take and 🔴 for errors',
part2: '\n🟢 = ready for you',
part3: ' 🔴 = needs review',
},
workspaceChatTooltip: {
part1: 'Review submitted expenses and chat',
part2: '\nwith approvers in your',
part3: ' workspace chat.',
part1: 'Submit expenses',
part2: ' and chat with',
part3: '\napprovers here!',
},
globalCreateTooltip: {
part1: 'Where to ',
part2: 'create expenses,',
part3: '\nstart chatting, and more.',
part1: 'Create expenses',
part2: ', start chatting,',
part3: '\nand more!',
},
},
};
Expand Down
24 changes: 12 additions & 12 deletions src/languages/es.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5986,24 +5986,24 @@ const translations = {
part3: ' aquí',
},
searchFilterButtonTooltip: {
part1: 'Personaliza tu búsqueda',
part2: ' aquí!',
part1: "Personaliza tu búsqueda",
part2: " aquí!"
},
bottomNavInboxTooltip: {
part1: 'Tu lista de tareas',
part2: ' incluye 🟢 para',
part3: '\nacciones a realizar y 🔴 para errores',
part1: "Tu lista de tareas",
part2: "\n🟢 = listo para ti",
part3: " 🔴 = necesita revisión"
},
workspaceChatTooltip: {
part1: 'Revisa los gastos enviados y chatea',
part2: '\ncon los aprobadores en tu',
part3: ' chat del espacio de trabajo.',
part1: "Envía gastos",
part2: " y chatea con",
part3: "\naprobadores aquí!"
},
globalCreateTooltip: {
part1: 'Dónde ',
part2: 'crear gastos,',
part3: '\nempezar a chatear y más.',
},
part1: "Crea gastos",
part2: ", comienza a chatear,",
part3: "\ny mucho más!"
}
},
};

Expand Down

0 comments on commit e2645c7

Please sign in to comment.