mirror of
https://github.com/bitwarden/browser
synced 2025-12-12 14:23:32 +00:00
This reverts commit 5a1940f3f4.
This commit is contained in:
@@ -5,10 +5,10 @@ import { I18nService } from "@bitwarden/common/abstractions/i18n.service";
|
||||
@Pipe({
|
||||
name: "i18n",
|
||||
})
|
||||
export class I18nPipe<TKey = string> implements PipeTransform {
|
||||
constructor(private i18nService: I18nService<TKey>) {}
|
||||
export class I18nPipe implements PipeTransform {
|
||||
constructor(private i18nService: I18nService) {}
|
||||
|
||||
transform(id: TKey, p1?: string | number, p2?: string | number, p3?: string | number): string {
|
||||
transform(id: string, p1?: string | number, p2?: string | number, p3?: string | number): string {
|
||||
return this.i18nService.t(id, p1, p2, p3);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
import { ITreeNodeObject } from "@bitwarden/common/models/domain/tree-node";
|
||||
|
||||
export type TopLevelTreeNodeId = "vaults" | "types" | "collections" | "folders";
|
||||
export type TopLevelTreeNodeName = "allVaults" | "types" | "collections" | "folders";
|
||||
export class TopLevelTreeNode implements ITreeNodeObject {
|
||||
id: TopLevelTreeNodeId;
|
||||
name: TopLevelTreeNodeName; // localizationString
|
||||
name: string; // localizationString
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user