Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions ui-src/locales/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import en from './en.json';
import pt_BR from './pt-BR.json';

/**
* Every locale, imported statically.
Expand All @@ -15,11 +16,13 @@ import en from './en.json';
*/
export const LOCALES = {
en,
'pt-BR': pt_BR,
} as const;

export type LocaleName = keyof typeof LOCALES;

/** What the picker in Settings shows, in the language itself. */
export const LOCALE_LABELS: Record<LocaleName, string> = {
en: 'English',
'pt-BR': 'Português Brasileiro',
};
Loading