fix: translation of access options

pull/120/head
sualko 2021-01-22 19:19:43 +01:00
parent 3b86cf5b4a
commit e9cd6aca20
1 changed files with 5 additions and 13 deletions

View File

@ -1,17 +1,9 @@
import { Access } from './Api'; import { Access } from './Api';
interface EscapeOptions {
escape?: boolean;
}
export function bt(string: string, vars?: { [key: string]: string }, count?: number, options?: EscapeOptions): string {
return t('bbb', string, vars, count, options);
}
export const AccessOptions = { export const AccessOptions = {
[Access.Public]: bt('Public'), [Access.Public]: t('bbb', 'Public'),
[Access.Password]: bt('Internal + Password protection for guests'), [Access.Password]: t('bbb', 'Internal + Password protection for guests'),
[Access.WaitingRoom]: bt('Internal + Waiting room for guests'), [Access.WaitingRoom]: t('bbb', 'Internal + Waiting room for guests'),
[Access.Internal]: bt('Internal'), [Access.Internal]: t('bbb', 'Internal'),
[Access.InternalRestricted]: bt('Internal restricted'), [Access.InternalRestricted]: t('bbb', 'Internal restricted'),
}; };