feat: localize performance

This commit is contained in:
tresabhi committed 2025-01-07 12:47:55 -06:00
1 parent 7dfdf4c11b
commit 9de41529d1
15 files changed
+134 -76

No files matched your search

@@ -1,21 +1,6 @@
import en from '@blitzkit/core/lang/en.json';
import type { TankPerformanceSortType } from '.';
export const TankPerformanceSortTypeNames = {
winrate: 'Winrate',
players: 'Players',
damage: 'Damage',
survival: 'Survival',
xp: 'XP',
kills: 'Kills',
spots: 'Spots',
accuracy: 'Accuracy',
shots: 'Shots',
hits: 'Hits',
damageRatio: 'Dmg. ratio',
damageTaken: 'Dmg. taken',
capturePoints: 'Cap points',
} as const;
export const TankPerformanceSortTypeNamesArray = Object.keys(
TankPerformanceSortTypeNames,
en.website.tools.performance.table.stats,
) as TankPerformanceSortType[];
@@ -1,8 +1,9 @@
import type en from '@blitzkit/core/lang/en.json';
import { create } from 'zustand';
import { createContextualStore } from '../../core/zustand/createContextualStore';
import { TankPerformanceSortTypeNames } from './constants';
export type TankPerformanceSortType = keyof typeof TankPerformanceSortTypeNames;
export type TankPerformanceSortType =
keyof typeof en.website.tools.performance.table.stats;
export interface TankPerformanceSort {
type: TankPerformanceSortType;