Skip to content

Commit

Permalink
chore: fix typings
Browse files Browse the repository at this point in the history
  • Loading branch information
pure-js committed Oct 2, 2023
1 parent c4332d9 commit 7024af5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/dictionaries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ const dictionaries = {
es: () => import('../dictionaries/es.json').then((module) => module.default),
};

export const getDictionary = async (locale: string) => dictionaries[locale]();
export const getDictionary = async (locale: 'es' | 'en') =>
dictionaries[locale]();

0 comments on commit 7024af5

Please sign in to comment.