Migrate more strings to translation keys (#11613)

This commit is contained in:
Michael Telatynski
2023-09-19 17:16:38 +01:00
committed by GitHub
parent d46d4b3d04
commit 5cb8cbd893
111 changed files with 8214 additions and 6766 deletions

View File

@@ -26,15 +26,12 @@ export const positionFailureMessage = (code: number): string | undefined => {
const brand = SdkConfig.get().brand;
switch (code) {
case 1:
return _t(
"%(brand)s was denied permission to fetch your location. Please allow location access in your browser settings.",
{ brand },
);
return _t("location_sharing|failed_permission", { brand });
case 2:
return _t("Failed to fetch your location. Please try again later.");
return _t("location_sharing|failed_generic");
case 3:
return _t("Timed out trying to fetch your location. Please try again later.");
return _t("location_sharing|failed_timeout");
case 4:
return _t("Unknown error fetching location. Please try again later.");
return _t("location_sharing|failed_unknown");
}
};