mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-11-22 05:15:32 +01:00
localize a few things
This commit is contained in:
5 files changed
+26
-5
No files matched your search
@@ -6,6 +6,7 @@ import { SKIN_NUMBER } from "../../constants/skinNumber";
|
||||
import { useAbsoluteDisplay } from "../../hooks/useAbsoluteDisplay";
|
||||
import { useDuelModules } from "../../hooks/useDuelModules";
|
||||
import { hasSkinAnimations } from "../../hooks/useSkin";
|
||||
import { useStrings } from "../../hooks/useStrings";
|
||||
import { useUnwrapper } from "../../hooks/useUnwrapper";
|
||||
import { Tankopedia } from "../../stores/tankopedia";
|
||||
import { TankopediaDisplay } from "../../stores/tankopediaPersistent/constants";
|
||||
@@ -17,6 +18,7 @@ const camouflageDefinitions = await api.camouflages();
|
||||
|
||||
export function TankopediaSkinSwitcher() {
|
||||
const unwrap = useUnwrapper();
|
||||
const strings = useStrings();
|
||||
|
||||
const protagonist = useDuelModules("protagonist");
|
||||
|
||||
@@ -94,7 +96,11 @@ export function TankopediaSkinSwitcher() {
|
||||
|
||||
{hasAnimations && (
|
||||
<Tooltip
|
||||
tooltip={playing ? "Pause animations" : "Play animations"}
|
||||
tooltip={
|
||||
playing
|
||||
? strings.tanks.skin_switcher.pause_animations
|
||||
: strings.tanks.skin_switcher.play_animations
|
||||
}
|
||||
side="left"
|
||||
>
|
||||
<IconButton
|
||||
|
||||
Reference in new issue
Block a user