Skip to content

Commit

Permalink
Add internationalisation module and utilities
Browse files Browse the repository at this point in the history
  • Loading branch information
brawaru committed Jan 12, 2023
1 parent 17f00e6 commit 087cc68
Show file tree
Hide file tree
Showing 44 changed files with 7,223 additions and 575 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -96,3 +96,6 @@ sw.*
# pnpm files
pnpm-lock.yaml
/.npmrc

# Auto-generated messages types (annoying to rebase)
types/i18n-messages.d.ts
13 changes: 12 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
{
"semi": false,
"singleQuote": true,
"endOfLine": "auto"
"endOfLine": "auto",
"plugins": ["prettier-plugin-jsdoc"],
"overrides": [
{
"files": ["i18n/*/*.html"],
"options": {
"proseWrap": "never",
"htmlWhitespaceSensitivity": "strict",
"printWidth": 9999999999
}
}
]
}
14 changes: 14 additions & 0 deletions assets/styles/utils.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,17 @@ body {
.text-container p {
line-height: 1.3;
}

.sr-only {
border: 0 !important;
clip: rect(1px, 1px, 1px, 1px) !important;
-webkit-clip-path: inset(50%) !important;
clip-path: inset(50%) !important;
height: 1px !important;
margin: -1px !important;
overflow: hidden !important;
padding: 0 !important;
position: absolute !important;
width: 1px !important;
white-space: nowrap !important;
}
Loading

0 comments on commit 087cc68

Please sign in to comment.