refactor: 🌐 Internationalize every string

This commit is contained in:
Jesse Wierzbinski 2024-12-07 22:17:22 +01:00
parent 8c3ddc2a28
commit 2ceee4827f
No known key found for this signature in database
41 changed files with 932 additions and 428 deletions

View file

@ -1,9 +1,10 @@
import type { ApplicationData } from "@versia/client/types";
import { nanoid } from "nanoid";
import { toast } from "vue-sonner";
import * as m from "~/paraglide/messages.js";
export const signIn = async (appData: Ref<ApplicationData | null>) => {
const id = toast.loading("Signing in...");
const id = toast.loading(m.level_due_ox_greet());
const output = await client.value.createApp("Versia", {
scopes: ["read", "write", "follow", "push"],
@ -13,7 +14,7 @@ export const signIn = async (appData: Ref<ApplicationData | null>) => {
if (!output?.data) {
toast.dismiss(id);
toast.error("Failed to create app");
toast.error(m.silly_sour_fireant_fear());
return;
}
@ -30,7 +31,7 @@ export const signIn = async (appData: Ref<ApplicationData | null>) => {
if (!url) {
toast.dismiss(id);
toast.error("Failed to generate auth URL");
toast.error(m.candid_frail_lion_value());
return;
}