chore: add prettier with config and format all files
This commit is contained in:
@@ -3,7 +3,9 @@ import path from 'path';
|
||||
import { parseCsv } from './localization';
|
||||
import type { LocaleMap } from './localization';
|
||||
|
||||
declare global { var __serverLocaleCache: LocaleMap | undefined; }
|
||||
declare global {
|
||||
var __serverLocaleCache: LocaleMap | undefined;
|
||||
}
|
||||
|
||||
/**
|
||||
* Loads and merges EN + DE locale CSVs from the public directory.
|
||||
@@ -23,7 +25,10 @@ export function getServerLocaleMap(): LocaleMap {
|
||||
}
|
||||
}
|
||||
|
||||
const merged: LocaleMap = new Map([...load('factorio_english_items.csv'), ...load('factorio_german_items.csv')]);
|
||||
const merged: LocaleMap = new Map([
|
||||
...load('factorio_english_items.csv'),
|
||||
...load('factorio_german_items.csv'),
|
||||
]);
|
||||
globalThis.__serverLocaleCache = merged;
|
||||
return merged;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user