This commit is contained in:
2024-03-27 16:13:33 +01:00
parent 337425d21c
commit 43a724bf13
2 changed files with 0 additions and 19 deletions
-2
View File
@@ -21,6 +21,4 @@ const i18n = createI18n<[LocaleMessageSchema], 'en' | 'pl'>({
messages: locales, messages: locales,
}); });
// fetchBackendTranslations();
export default i18n; export default i18n;
-17
View File
@@ -68,23 +68,6 @@ export const useStore = defineStore({
isTrainPassenger: (state) => isTrainPassenger(state.stockList), isTrainPassenger: (state) => isTrainPassenger(state.stockList),
acceptableWeight: (state) => acceptableWeight(state.stockList), acceptableWeight: (state) => acceptableWeight(state.stockList),
// chosenRealStock: (state) => {
// const currentStockString = state.stockList
// .reduce((acc, stock) => {
// for (let i = 0; i < stock.count; i++) acc.push(stock.type);
// return acc;
// }, [] as string[])
// .join(';');
// // const realStockObj = vehilcesData.realCompositions.find((readyStock) => readyStock.stockString == currentStockString);
// // state.chosenRealStockName = realStockObj?.stockId ?? undefined;
// state
// // return state.r.find((readyStock) => readyStock.stockString == currentStockString);
// },
realCompositionList: (state) => { realCompositionList: (state) => {
if (!state.vehiclesAPIData) return []; if (!state.vehiclesAPIData) return [];