Skip to content

Commit

Permalink
Merge pull request #341 from ixartz/vitest-settings
Browse files Browse the repository at this point in the history
fix: use new vitest vscode setting for preventing automatic opening of the test results
  • Loading branch information
ixartz authored Dec 20, 2024
2 parents 7b93fbb + 7efbf20 commit b9c5692
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"typescript.preferences.preferTypeOnlyAutoImports": true, // Prefer type-only imports

// Vitest
"testing.openTesting": "neverOpen", // Don't open the testing view automatically when running tests
"testing.automaticallyOpenTestResults": "neverOpen", // Don't open the test results automatically

// I18n
"i18n-ally.localesPaths": ["src/locales"],
Expand Down
12 changes: 12 additions & 0 deletions src/components/Hello.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,18 @@ export const Hello = async () => {
{`👋 `}
{t('hello_message', { email: user?.emailAddresses[0]?.emailAddress })}
</p>
<p>
{t.rich('alternative_message', {
url: () => (
<a
className="text-blue-700 hover:border-b-2 hover:border-blue-700"
href="https://nextjs-boilerplate.com/pro-saas-starter-kit"
>
Next.js Boilerplate SaaS
</a>
),
})}
</p>
<Sponsors />
</>
);
Expand Down
3 changes: 2 additions & 1 deletion src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@
},
"Dashboard": {
"meta_title": "Dashboard",
"hello_message": "Hello {email}!"
"hello_message": "Hello {email}!",
"alternative_message": "Want to build your SaaS faster using the same stack? Try <url></url>."
},
"UserProfile": {
"meta_title": "User Profile"
Expand Down
3 changes: 2 additions & 1 deletion src/locales/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@
},
"Dashboard": {
"meta_title": "Tableau de bord",
"hello_message": "Bonjour {email}!"
"hello_message": "Bonjour {email}!",
"alternative_message": "Vous voulez créer votre SaaS plus rapidement en utilisant la même stack ? Essayez <url></url>."
},
"UserProfile": {
"meta_title": "Profil de l'utilisateur"
Expand Down

0 comments on commit b9c5692

Please sign in to comment.