🌐 (notification) notification in French
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user