🌐 (notification) notification in French

This commit is contained in:
2020-07-05 12:47:47 +02:00
parent 339c95ccd1
commit 1e582da54c
2 changed files with 8 additions and 5 deletions

View File

@@ -33,7 +33,7 @@ export const useTimer = () => {
const start = () => {
timeState.value = 'started'
notify('Session started!')
notify('La session commence !')
stopwatchId = setInterval(() => {
seconds.value++
@@ -41,11 +41,11 @@ export const useTimer = () => {
sessionSeconds.value = intervalSeconds.value
isProgrammer1Turn.value = !isProgrammer1Turn.value
const programmer = isProgrammer1Turn.value
? 'Programmer 1'
: 'Programmer 2'
const dev = isProgrammer1Turn.value ? 'Dev 1' : 'Dev 2'
notify('Time to change', { body: `${programmer}, your turn!` })
notify('Changement de joueur !', {
body: `${dev}, à votre tour !`
})
}
}, 1000)
@@ -58,9 +58,11 @@ export const useTimer = () => {
timeState.value = 'stopped'
if (stopwatchId) {
clearInterval(stopwatchId)
stopwatchId = null
}
if (stopWatchSessionId) {
clearInterval(stopWatchSessionId)
stopWatchSessionId = null
}
seconds.value = 0
sessionSeconds.value = intervalSeconds.value