From 934c48efb9ab09df6b9d080ea6f534ce1cb9686d Mon Sep 17 00:00:00 2001 From: Pavel Kuzmin Date: Fri, 23 Aug 2024 13:27:13 +0500 Subject: [PATCH] refactor(playground): add more examples --- playground/locales/pages/dir1/en.json | 4 ++-- playground/locales/pages/page/en.json | 4 ++++ playground/pages/page.vue | 9 +++++++++ 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/playground/locales/pages/dir1/en.json b/playground/locales/pages/dir1/en.json index 51a5f9ee..36dfbb8f 100644 --- a/playground/locales/pages/dir1/en.json +++ b/playground/locales/pages/dir1/en.json @@ -1,3 +1,3 @@ { - "key2" : "en dir1" -} + "key2": "en dir1" +} \ No newline at end of file diff --git a/playground/locales/pages/page/en.json b/playground/locales/pages/page/en.json index 07e3c3a9..4dacacf1 100644 --- a/playground/locales/pages/page/en.json +++ b/playground/locales/pages/page/en.json @@ -1,6 +1,10 @@ { "welcome": "Welcome, {username}! You have {unreadCount} unread messages.", "apples": "no apples | one apple | {count} apples", + "feedback": { + "text": "test link: {link}", + "link": "click" + }, "key1": { "key1": { "key1": { diff --git a/playground/pages/page.vue b/playground/pages/page.vue index 5e36831d..318c623b 100644 --- a/playground/pages/page.vue +++ b/playground/pages/page.vue @@ -9,6 +9,15 @@ {{ translation.replace('page', 'page replace') }} !!! + + + + +

Current Locale: {{ $getLocale() }}