From 817516dcb44a65ef8a7f0ac5f4612131ece1e46a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=B3zsa=20Zolt=C3=A1n?= <67325669+rozsazoltan@users.noreply.github.com> Date: Sat, 24 Feb 2024 13:08:50 +0100 Subject: [PATCH] feat: avoid displaying the key until loading --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index a3ed7d1..34a3d36 100644 --- a/src/index.ts +++ b/src/index.ts @@ -413,7 +413,7 @@ export class I18n { value = this.findTranslation(key.replace(/\//g, '.')) } - this.activeMessages[key] = this.isValid(value) ? value : key + this.activeMessages[key] = this.isValid(value) ? value : (this.isLoaded() ? key : '') }) return computed(() => this.makeReplacements(this.activeMessages[key], replacements))