Skip to content

Commit

Permalink
Fix some typos
Browse files Browse the repository at this point in the history
  • Loading branch information
rugk committed Aug 22, 2022
1 parent c533bf8 commit dee08d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Localizer.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ function innerTranslateTextNodes(parent, translatedMessage, subsContainer) {
// is also returned in splitTranslatedMessage
if (splitTranslatedMessage.length <= subsContainer.substitutions.length) {
console.warn(
"You used only", splitTranslatedMessage.length, "message blocks, altghough you could use",
"You used only", splitTranslatedMessage.length, "message blocks, although you could use",
subsContainer.substitutions.length, "substitutions. Possibly you did not include all substitutions in your translation?",
"Check for typos in the placeholder name e.g.",
{
Expand Down Expand Up @@ -144,7 +144,7 @@ function innerTranslateTextNodes(parent, translatedMessage, subsContainer) {

// if we have no more text elements
if (nextText.done) {
console.warn("Translation contained more text then HTML template. We now add a note. Triggered for translation: ", message);
console.warn("Translation contained more text than HTML template. We now add a note. Triggered for translation: ", message);
// just create & add a new one
const newTextNode = document.createTextNode(message);

Expand Down

0 comments on commit dee08d4

Please sign in to comment.