fix(contentinvoice): Use shared translation.TranslationKey type in DeContentInvoice.translateKey and remove local import
This commit is contained in:
@@ -15,7 +15,6 @@ import {
|
||||
import * as plugins from "../plugins.js";
|
||||
|
||||
import { dedocumentSharedStyle } from "../style.js";
|
||||
import type { TranslationKey } from "../../ts_shared/translation.js";
|
||||
|
||||
declare global {
|
||||
interface HTMLElementTagNameMap {
|
||||
@@ -303,7 +302,7 @@ export class DeContentInvoice extends DeesElement {
|
||||
}
|
||||
}
|
||||
|
||||
public translateKey(key: TranslationKey): string {
|
||||
public translateKey(key: plugins.shared.translation.TranslationKey): string {
|
||||
return plugins.shared.translation.translate(
|
||||
this.documentSettings.languageCode,
|
||||
key
|
||||
|
||||
Reference in New Issue
Block a user