Browse Source

Localize country name

pull/7168/head
Thomas Kaul 2 weeks ago
parent
commit
8bacf91c54
  1. 2
      apps/client/src/app/components/admin-users/admin-users.component.ts
  2. 8
      apps/client/src/app/components/admin-users/admin-users.html

2
apps/client/src/app/components/admin-users/admin-users.component.ts

@ -8,6 +8,7 @@ import { UserService } from '@ghostfolio/client/services/user/user.service';
import { DEFAULT_LOCALE, DEFAULT_PAGE_SIZE } from '@ghostfolio/common/config';
import { ConfirmationDialogType } from '@ghostfolio/common/enums';
import {
getCountryName,
getDateFnsLocale,
getDateFormatString,
getEmojiFlag
@ -88,6 +89,7 @@ export class GfAdminUsersComponent implements OnInit {
>();
protected defaultDateFormat: string;
protected displayedColumns: string[] = [];
protected readonly getCountryName = getCountryName;
protected readonly getEmojiFlag = getEmojiFlag;
protected hasPermissionForSubscription: boolean;
protected hasPermissionToImpersonateAllUsers: boolean;

8
apps/client/src/app/components/admin-users/admin-users.html

@ -60,9 +60,11 @@
class="mat-mdc-cell px-1 py-2"
mat-cell
>
<span class="h5" [title]="element.country">{{
getEmojiFlag(element.country)
}}</span>
<span
class="h5"
[title]="getCountryName({ code: element.country })"
>{{ getEmojiFlag(element.country) }}</span
>
</td>
</ng-container>
}

Loading…
Cancel
Save