Skip to content

Commit

Permalink
chore: format prettier and paths
Browse files Browse the repository at this point in the history
  • Loading branch information
jesperorb committed Apr 4, 2024
1 parent ad6ad05 commit 5684661
Show file tree
Hide file tree
Showing 170 changed files with 4,336 additions and 3,121 deletions.
26 changes: 13 additions & 13 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,33 +2,33 @@
module.exports = {
root: true,
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:svelte/recommended',
'plugin:svelte/prettier',
'prettier'
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:svelte/recommended",
"plugin:svelte/prettier",
"prettier"
],
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
parser: "@typescript-eslint/parser",
plugins: ["@typescript-eslint"],
parserOptions: {
sourceType: 'module',
sourceType: "module",
ecmaVersion: 2020,
extraFileExtensions: ['.svelte']
extraFileExtensions: [".svelte"]
},
env: {
browser: true,
es2017: true,
node: true
},
rules: {
'@typescript-eslint/no-unused-vars': ['error', { varsIgnorePattern: 'Slots' }]
"@typescript-eslint/no-unused-vars": ["error", { varsIgnorePattern: "Slots" }]
},
overrides: [
{
files: ['*.svelte'],
parser: 'svelte-eslint-parser',
files: ["*.svelte"],
parser: "svelte-eslint-parser",
parserOptions: {
parser: '@typescript-eslint/parser'
parser: "@typescript-eslint/parser"
}
}
]
Expand Down
6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''
title: ""
labels: ""
assignees: ""
---

**Describe the bug**
Expand Down
6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''
title: ""
labels: ""
assignees: ""
---

**Is your feature request related to a problem? Please describe.**
Expand Down
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ yarn.lock
format.utils.ts
static/*.json
/.vercel
/.github

CodeBlock.svelte
HighlightValue.svelte
Expand Down
3 changes: 2 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"useTabs": true,
"singleQuote": true,
"singleQuote": false,
"trailingComma": "none",
"printWidth": 100,
"plugins": ["prettier-plugin-svelte"],
"overrides": [{ "files": "*.svelte", "options": { "parser": "svelte" } }]
}
8 changes: 0 additions & 8 deletions .prettierrc.js

This file was deleted.

4 changes: 3 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ In general, we follow the ["fork-and-pull" Git workflow](https://github.com/susa
4. Add a file with the name of your language code in the folder [./messages](./messages) (e.g. `es.json`)
5. Copy contents of the file [./messages/en.json](./messages/en.json) to your new file and start translating the strings.
6. Run project locally and check if your translations are working as expected.
- You can change language under "Settings" in the top right corner of the page.

- You can change language under "Settings" in the top right corner of the page.

7. Commit your changes and push to your fork and open a PR to this repository.

## License
Expand Down
2 changes: 1 addition & 1 deletion commitlint.config.cjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module.exports = {
extends: ['@commitlint/config-conventional']
extends: ["@commitlint/config-conventional"]
};
140 changes: 70 additions & 70 deletions messages/en.json
Original file line number Diff line number Diff line change
@@ -1,71 +1,71 @@
{
"$schema": "https://inlang.com/schema/inlang-message-format",
"about": "About",
"addLocale": "Add locale",
"addLocaleButton": "Add",
"alternativeUseHeading": "Alternativ use",
"alternativeUseIngress": "{method} can also be used from",
"amount": "Amount",
"and": "and",
"availableInBrowser": "Available in {browserName} from version {versionAdded}",
"blurbPart1": "is a tool for experimenting and trying out the",
"blurbPart2": "The API is available under the namespace",
"blurbPart3": "in JavaScript and provides language sensitive datetime formatting, number formatting, string comparison and more.",
"blurbPart4": "To get started either visit",
"blurbPart5": "or choose formatter you are interested in from the navigation menu.",
"blurbPart6": "The source code for this tool can be found at",
"blurbPart7": "The creator of this tool is",
"blurbWelcome": "Welcome to Intl Explorer!",
"browserDetails": "Browser details",
"browserSupport": "Browser support",
"close": "Close",
"code": "Code",
"codeTheme": "Code Theme",
"codeThemeHint": "Theme for code blocks: OceanicNext/Github",
"confirmLanguage": "Confirm language",
"copyCode": "Copy Code",
"copyCodeAriaLabel": "Copy code for options: {code}",
"copySchemaUrl": "Copy Schema URL",
"currency": "Currency",
"dark": "Dark",
"date": "Date",
"editLocale": "Edit locale",
"editLocaleButton": "Edit",
"equals": "equals",
"fullSupport": "Full support",
"input": "Input",
"language": "Language",
"languageHint": "Language for page. Press Confirm to reload page with selected language",
"light": "Light",
"list": "List",
"locale": "Locale",
"localeHint": "'Add' to add selected locale. 'Edit' to add custom locale not in list",
"menu": "Menu",
"meta": "Meta",
"method": "Method",
"no": "No",
"noSupport": "No support",
"notAvailableInBrowser": "Not available in {browserName}",
"noValue": "No value",
"options": "Options",
"output": "Output",
"partialSupport": "Partial support",
"remove": "Remove {value}",
"resolvedOptions": "Resolved Options",
"secondaryFormatters": "Secondary Formatters",
"seeAlso": "See also",
"selectCurrency": "Select a currency",
"selectLocaleButton": "Select",
"selectUnit": "Select a unit",
"settingsButton": "Settings",
"settingsHeading": "Settings",
"showBrowserSupport": "Show Browser Support",
"showBrowserSupportHint": "Toggle to hide or show Browser Details/Support",
"skipLink": "Skip to content",
"specification": "Specification",
"theme": "Theme",
"themeHint": "Page theme",
"time": "Time",
"unit": "Unit",
"value": "Value"
}
"$schema": "https://inlang.com/schema/inlang-message-format",
"about": "About",
"addLocale": "Add locale",
"addLocaleButton": "Add",
"alternativeUseHeading": "Alternativ use",
"alternativeUseIngress": "{method} can also be used from",
"amount": "Amount",
"and": "and",
"availableInBrowser": "Available in {browserName} from version {versionAdded}",
"blurbPart1": "is a tool for experimenting and trying out the",
"blurbPart2": "The API is available under the namespace",
"blurbPart3": "in JavaScript and provides language sensitive datetime formatting, number formatting, string comparison and more.",
"blurbPart4": "To get started either visit",
"blurbPart5": "or choose formatter you are interested in from the navigation menu.",
"blurbPart6": "The source code for this tool can be found at",
"blurbPart7": "The creator of this tool is",
"blurbWelcome": "Welcome to Intl Explorer!",
"browserDetails": "Browser details",
"browserSupport": "Browser support",
"close": "Close",
"code": "Code",
"codeTheme": "Code Theme",
"codeThemeHint": "Theme for code blocks: OceanicNext/Github",
"confirmLanguage": "Confirm language",
"copyCode": "Copy Code",
"copyCodeAriaLabel": "Copy code for options: {code}",
"copySchemaUrl": "Copy Schema URL",
"currency": "Currency",
"dark": "Dark",
"date": "Date",
"editLocale": "Edit locale",
"editLocaleButton": "Edit",
"equals": "equals",
"fullSupport": "Full support",
"input": "Input",
"language": "Language",
"languageHint": "Language for page. Press Confirm to reload page with selected language",
"light": "Light",
"list": "List",
"locale": "Locale",
"localeHint": "'Add' to add selected locale. 'Edit' to add custom locale not in list",
"menu": "Menu",
"meta": "Meta",
"method": "Method",
"no": "No",
"noSupport": "No support",
"notAvailableInBrowser": "Not available in {browserName}",
"noValue": "No value",
"options": "Options",
"output": "Output",
"partialSupport": "Partial support",
"remove": "Remove {value}",
"resolvedOptions": "Resolved Options",
"secondaryFormatters": "Secondary Formatters",
"seeAlso": "See also",
"selectCurrency": "Select a currency",
"selectLocaleButton": "Select",
"selectUnit": "Select a unit",
"settingsButton": "Settings",
"settingsHeading": "Settings",
"showBrowserSupport": "Show Browser Support",
"showBrowserSupportHint": "Toggle to hide or show Browser Details/Support",
"skipLink": "Skip to content",
"specification": "Specification",
"theme": "Theme",
"themeHint": "Page theme",
"time": "Time",
"unit": "Unit",
"value": "Value"
}
Loading

0 comments on commit 5684661

Please sign in to comment.