Skip to content

Commit

Permalink
remove type MaybePhraseKey
Browse files Browse the repository at this point in the history
  • Loading branch information
nkdengineer committed Jun 14, 2024
1 parent 61255a3 commit 7603cb4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/libs/Localize/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,6 @@ function translateLocal<TKey extends TranslationPaths>(phrase: TKey, ...variable
return translate(BaseLocaleListener.getPreferredLocale(), phrase, ...variables);
}

type MaybePhraseKey = string | null | [string, Record<string, unknown> & {isTranslated?: boolean}] | [];

function getPreferredListFormat(): Intl.ListFormat {
if (!CONJUNCTION_LIST_FORMATS_FOR_LOCALES) {
init();
Expand Down Expand Up @@ -228,4 +226,4 @@ function getDevicePreferredLocale(): Locale {
}

export {translate, translateLocal, formatList, formatMessageElementList, getDevicePreferredLocale};
export type {PhraseParameters, Phrase, MaybePhraseKey};
export type {PhraseParameters, Phrase};

0 comments on commit 7603cb4

Please sign in to comment.