astro native i18n + i18n utils

This commit is contained in:
nico 2024-12-28 11:52:32 +01:00
parent 99ef7634e3
commit b7ce5b7f20
Signed by: Nicolas
SSH key fingerprint: SHA256:ELi8eDeNLl5PTn64G+o2Kx5+XVDfHF5um2tZigfwWkM
16 changed files with 266 additions and 163 deletions

34
.prettierrc.mjs Normal file
View file

@ -0,0 +1,34 @@
/** @type {import("prettier").Config} */
const config = {
arrowParens: 'always',
bracketSameLine: false,
bracketSpacing: true,
embeddedLanguageFormatting: 'auto',
endOfLine: 'lf',
htmlWhitespaceSensitivity: 'css',
insertPragma: false,
jsxSingleQuote: true,
printWidth: 80,
proseWrap: 'preserve',
quoteProps: 'as-needed',
requirePragma: false,
semi: false,
singleAttributePerLine: false,
singleQuote: true,
tabWidth: 2,
trailingComma: 'none',
useTabs: true,
vueIndentScriptAndStyle: false,
plugins: ['prettier-plugin-organize-imports', 'prettier-plugin-astro'],
overrides: [
{
files: '*.astro',
options: {
parser: 'astro'
}
}
]
}
export default config