diff --git a/frontend/layouts/default.vue b/frontend/layouts/default.vue
index df117f37..70ff0953 100644
--- a/frontend/layouts/default.vue
+++ b/frontend/layouts/default.vue
@@ -29,6 +29,12 @@
+
@@ -104,10 +110,16 @@
import MdiAccount from "~icons/mdi/account";
import MdiCog from "~icons/mdi/cog";
const username = computed(() => authCtx.user?.name || "User");
+
+ const pubApi = usePublicApi();
+ const { data: status } = useAsyncData(async () => {
+ const { data } = await pubApi.status();
+
+ return data;
+ });
+
// Preload currency format
useFormatCurrency();
- const locale = useState("locale").value;
- console.log(locale);
const modals = reactive({
item: false,
location: false,
diff --git a/frontend/locales/en.json b/frontend/locales/en.json
index f2b7fbe1..35e498c8 100644
--- a/frontend/locales/en.json
+++ b/frontend/locales/en.json
@@ -11,6 +11,7 @@
"submit": "Submit",
"confirm": "Confirm",
"create": "Create",
+ "created": "Created",
"create_and_add": "Create and Add Another",
"welcome": "Welcome, { username }",
"sign_out": "Sign Out"
@@ -40,7 +41,9 @@
"test": "Test",
"gen_invite": "Generate Invite Link",
"user_profile": "User Profile",
- "user_profile_sub": "Invite users, and manage your account."
+ "user_profile_sub": "Invite users, and manage your account.",
+ "active": "Active",
+ "inactive": "Inactive"
},
"components": {
"global": {
diff --git a/frontend/pages/profile.vue b/frontend/pages/profile.vue
index fe3986d4..aa257eeb 100644
--- a/frontend/pages/profile.vue
+++ b/frontend/pages/profile.vue
@@ -89,13 +89,6 @@
notify.success("Group updated");
}
- const pubApi = usePublicApi();
- const { data: status } = useAsyncData(async () => {
- const { data } = await pubApi.status();
-
- return data;
- });
-
const { setTheme } = useTheme();
const auth = useAuthContext();
@@ -399,11 +392,11 @@
- Active
- Inactive
+ {{ $t("profile.active") }}
+ {{ $t("profile.inactive") }}
- Created
+ {{ $t("global.created") }}
@@ -411,7 +404,7 @@
- Create
+ {{ $t("global.create") }}
@@ -500,9 +493,6 @@
-