🌐 (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

1
doc/details.md Normal file
View File

@@ -0,0 +1 @@
# Les étapes de codes

View File

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