Skip to content

Commit

Permalink
Update index.mdx (#6)
Browse files Browse the repository at this point in the history
Fixed a typo
  • Loading branch information
oaitbaziz authored Dec 12, 2023
1 parent b29d7a2 commit d00f9d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/src/pages/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ type ApiEndpoint = `/api/${ApiRoute}`;
const userEndpoint: ApiEndpoint = '/api/users';

// ❌ Avoid
const homeTitleTranslation = 'transltion.hom.title'; // Type 'string' - no error
const homeTitleTranslation = 'transltion.home.title'; // Type 'string' - no error
// ✅ Use
type LocaleKeyPages = 'home' | 'about' | 'contact';
type TranslationKey = `translation.${LocaleKeyPages}.${string}`;
Expand Down

0 comments on commit d00f9d5

Please sign in to comment.