mirror of
https://github.com/rommapp/romm.git
synced 2026-02-18 00:27:41 +01:00
Remove unused provider locale methods
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -614,23 +614,6 @@ class ConfigManager:
|
||||
self.config.__setattr__(exclusion_type, config_item)
|
||||
self._update_config_file()
|
||||
|
||||
def set_provider_locale(self, provider: str, locale: str) -> None:
|
||||
provider_locales = self.config.METADATA_PROVIDER_LOCALES
|
||||
provider_locales[provider] = locale
|
||||
self.config.METADATA_PROVIDER_LOCALES = provider_locales
|
||||
self._update_config_file()
|
||||
|
||||
def remove_provider_locale(self, provider: str) -> None:
|
||||
provider_locales = self.config.METADATA_PROVIDER_LOCALES
|
||||
|
||||
try:
|
||||
del provider_locales[provider]
|
||||
except KeyError:
|
||||
pass
|
||||
|
||||
self.config.METADATA_PROVIDER_LOCALES = provider_locales
|
||||
self._update_config_file()
|
||||
|
||||
def update_provider_locales(self, locales: dict[str, str]) -> None:
|
||||
self.config.METADATA_PROVIDER_LOCALES = locales
|
||||
self._update_config_file()
|
||||
|
||||
@@ -78,12 +78,6 @@ export default defineStore("config", {
|
||||
isExclusionType(type: string): type is ExclusionTypes {
|
||||
return Object.keys(this.config).includes(type);
|
||||
},
|
||||
setProviderLocale(provider: string, locale: string) {
|
||||
this.config.METADATA_PROVIDER_LOCALES[provider] = locale;
|
||||
},
|
||||
removeProviderLocale(provider: string) {
|
||||
delete this.config.METADATA_PROVIDER_LOCALES[provider];
|
||||
},
|
||||
getEJSCoreOptions(core: string | null): Record<string, string | boolean> {
|
||||
const defaultOptions = this.config.EJS_SETTINGS["default"] || {};
|
||||
if (!core) return defaultOptions;
|
||||
|
||||
Reference in New Issue
Block a user