Skip to content

Commit

Permalink
[fix] Translation typo (closes #269) (story/6208)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ferllings committed Nov 9, 2022
1 parent fd9319b commit 0e9a5cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/views/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ function applyContrastRatio(contrastRatio) {
contrastRatioString = `${crr}:1`
if ((cr >= 6.95 && cr < 7) || (cr >= 4.45 && cr < 4.5) || (cr >= 2.95 && cr < 3)) {
let crr3 = Number(cr.toFixed(3)).toLocaleString(i18n.lang)
contrastRatioString = `<span class="smaller">${t.Main["just below"]} </span>${crr}:1<span class="smaller"> (${crr3}:1)</span>`
contrastRatioString = `<span class="smaller">${i18n["just below"]} </span>${crr}:1<span class="smaller"> (${crr3}:1)</span>`
}

document.getElementById('contrast-ratio-value').innerHTML = contrastRatioString
Expand Down

0 comments on commit 0e9a5cb

Please sign in to comment.