add support for supplying ltr and rtl
This commit is contained in:
@@ -39,7 +39,7 @@ export class UmbTranslationRegistry {
|
||||
// Notify subscribers that the inner dictionary has changed.
|
||||
const translation: Translation = {
|
||||
$code: userCulture,
|
||||
$dir: 'ltr',
|
||||
$dir: extension.meta.direction ?? 'ltr',
|
||||
...innerDictionary,
|
||||
};
|
||||
registerTranslation(translation);
|
||||
|
||||
@@ -12,6 +12,13 @@ export interface MetaTranslations {
|
||||
*/
|
||||
culture: string;
|
||||
|
||||
/**
|
||||
* The direction of the translations (left-to-right or right-to-left).
|
||||
* @example "ltr"
|
||||
* @default "ltr"
|
||||
*/
|
||||
direction?: 'ltr' | 'rtl';
|
||||
|
||||
/**
|
||||
* The translations.
|
||||
* @example
|
||||
|
||||
Reference in New Issue
Block a user