Skip to content
This repository has been archived by the owner on Aug 3, 2024. It is now read-only.

Commit

Permalink
Preserve whitespace in extracted translatable strings (#1390)
Browse files Browse the repository at this point in the history
  • Loading branch information
brawaru authored Oct 1, 2023
1 parent 3fa86cb commit 5c7dd10
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions locales/en-US/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -165,14 +165,14 @@
"message": "Revoke session"
},
"settings.sessions.description": {
"message": "Here are all the devices that are currently logged in with your Modrinth account. You can log out of each one individually.\n\n If you see an entry you don't recognize, log out of that device and change your Modrinth account password immediately."
},
"settings.sessions.label.current-session": {
"message": "Current session"
"message": "Here are all the devices that are currently logged in with your Modrinth account. You can log out of each one individually.\n\nIf you see an entry you don't recognize, log out of that device and change your Modrinth account password immediately."
},
"settings.sessions.label.created-at": {
"message": "Created {ago}"
},
"settings.sessions.label.current-session": {
"message": "Current session"
},
"settings.sessions.label.last-accessed-at": {
"message": "Last accessed {ago}"
},
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"lint:js": "eslint . --ext .js,.vue,.ts",
"lint": "npm run lint:js && prettier --check .",
"fix": "eslint . --fix --ext .js,.vue,.ts && prettier --write .",
"intl:extract": "formatjs extract \"{,components,composables,layouts,middleware,modules,pages,plugins,utils}/**/*.{vue,ts,tsx,js,jsx,mts,cts,mjs,cjs}\" --ignore '**/*.d.ts' --ignore 'node_modules' --out-file locales/en-US/index.json --format crowdin"
"intl:extract": "formatjs extract \"{,components,composables,layouts,middleware,modules,pages,plugins,utils}/**/*.{vue,ts,tsx,js,jsx,mts,cts,mjs,cjs}\" --ignore '**/*.d.ts' --ignore 'node_modules' --out-file locales/en-US/index.json --format crowdin --preserve-whitespace"
},
"devDependencies": {
"@formatjs/cli": "^6.1.2",
Expand Down
2 changes: 1 addition & 1 deletion pages/user/[id].vue
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ const messages = defineMessages({
profileNoProjectsAuthLabel: {
id: 'profile.label.no-projects-auth',
defaultMessage:
"You don't have any projects.\n Would you like to <create-link>create one</create-link>?",
"You don't have any projects.\nWould you like to <create-link>create one</create-link>?",
},
userNotFoundError: {
id: 'profile.error.not-found',
Expand Down

0 comments on commit 5c7dd10

Please sign in to comment.