Initial backend hosting implementation

This commit is contained in:
Marco Rodolfi
2023-01-23 18:18:46 +01:00
parent 8da0395917
commit 5f455a01b7
28 changed files with 30 additions and 0 deletions
@@ -1,3 +0,0 @@
{
"update_channel_label": "Update Channel"
}
-4
View File
@@ -1,4 +0,0 @@
{
"reload": "Reload",
"uninstall": "Uninstall"
}
@@ -1,7 +0,0 @@
{
"valve_internal_label": "Enable Valve Internal",
"valve_internal_desc1": "Enables the Valve internal developer menu.",
"valve_internal_desc2": "Do not touch anything in this menu unless you know what it does.",
"react_devtools_label": "Enable React DevTools",
"react_devtools_desc": "Enables connection to a computer running React DevTools. Changing this setting will reload Steam. Set the IP address before enabling."
}
@@ -1,6 +0,0 @@
{
"plugin_version_label": "Plugin Version",
"plugin_full_access": "This plugin has full access to your Steam Deck.",
"plugin_install": "Install",
"plugin_no_desc": "No description provided."
}
@@ -1,7 +0,0 @@
{
"install_title": "Install {{artifact}}",
"install_desc": "Are you sure you want to install {{artifact}} {{version}}?",
"install_button_idle": "Install",
"install_button_processing": "Installing"
}
@@ -1,5 +0,0 @@
{
"list_no_plugin": "No plugins installed!",
"list_update_to": "Update to {{name}}",
"list_plug_actions_label": "Plugin Actions"
}
@@ -1,4 +0,0 @@
{
"remote_cef_label": "Allow Remote CEF Debugging",
"remote_cef_desc": "Allow unauthenticated access to the CEF debugger to anyone in your network"
}
@@ -1,6 +0,0 @@
{
"developer_mode_label": "Developer mode",
"developer_mode_desc": "Enables Decky's developer settings.",
"manual_plugin_label": "Manual plugin install",
"manual_plugin_install_button": "Install"
}
@@ -1,6 +0,0 @@
{
"general_title": "General",
"plugins_title": "Plugins",
"developer_title": "Developer",
"navbar_settings": "Decky Settings"
}
-19
View File
@@ -1,19 +0,0 @@
{
"store_tabs_title": "Browse",
"store_tabs_about": "About",
"store_tabs_alph_desc": "Alphabetical (A to Z)",
"store_tabs_alph_asce": "Alphabetical (Z to A)",
"store_sort_label": "Sort",
"store_sort_label_def": "Last Updated (Newest)",
"store_filter_label": "Filter",
"store_fiter_label_def": "All",
"store_search_label": "Search",
"store_testing_cta": "Please consider testing new plugins to help the Decky Loader team!",
"store_contrib_label": "Contributing",
"store_contrib_desc": "If you would like to contribute to the Decky Plugin Store, check the SteamDeckHomebrew/decky-plugin-template repository on GitHub. Information on development and distribution is available in the README.",
"store_source_label": "Source Code",
"store_source_desc": "All plugin source code is available on SteamDeckHomebrew/decky-plugin-database repository on GitHub."
}
@@ -1,4 +0,0 @@
{
"store_channel_label": "Store Channel",
"custom_store_label": "Custom Store"
}
-14
View File
@@ -1,14 +0,0 @@
{
"no_patch_notes_desc": "no patch notes for this version",
"decky_updates": "Decky Updates",
"updates_label": "Updates",
"updates_cur_version": "Current version: {{ver}}",
"updates_lat_version": "Latest version: {{ver}}",
"updates_checking": "'Checking",
"updates_check_button": "Check For Updates",
"updates_install_button": "Install Update",
"updates_reloading": "Reloading",
"updates_updating": "Updating"
}
@@ -1,13 +0,0 @@
{
"enabling": "Enabling",
"disabling": "Disabling",
"decky_update_available": "Update to {{tag_name}} available!",
"plugin_update_one": "Updates available for 1 plugin!",
"plugin_update_other": "Updates available for {{number}} plugins!",
"plugin_uninstall": "Are you sure you want to uninstall {{name}}?",
"plugin_load_error": "Error loading plugin {{name}}",
"plugin_load_error_toast": "Error loading {{name}}",
"error": "Error",
"plugin_error_uninstall": "Please go to {{-icon}} in the Decky menu if you need to uninstall this plugin.",
"file_picker_cancel_text": "User canceled"
}
@@ -1,3 +0,0 @@
{
"update_channel_label": "Canale di aggiornamento"
}
-4
View File
@@ -1,4 +0,0 @@
{
"reload": "Ricarica",
"uninstall": "Rimuovi"
}
@@ -1,7 +0,0 @@
{
"valve_internal_label": "Abilita Menu Sviluppatore",
"valve_internal_desc1": "Abilita il menu interno di sviluppo di Valve.",
"valve_internal_desc2": "Non toccare nulla in questo menu se non sai quello che fa.",
"react_devtools_label": "Abilita i DevTools di React",
"react_devtools_desc": "Abilita la connessione ad un computer che esegue i DevTools di React. Cambiando questa impostazione ricaricherà Steam. Imposta l'indirizzo IP prima di abilitarlo."
}
@@ -1,6 +0,0 @@
{
"plugin_version_label": "Versione Plugin",
"plugin_full_access": "Questo pluugin ha accesso completo al tuo Steam Deck.",
"plugin_install": "Installa",
"plugin_no_desc": "Nessuna descrizione fornita."
}
@@ -1,7 +0,0 @@
{
"install_title": "Installa {{artifact}}",
"install_desc": "Sei sicuro di voler installare {{artifact}} {{version}}?",
"install_button_idle": "Installa",
"install_button_processing": "Installando"
}
@@ -1,5 +0,0 @@
{
"list_no_plugin": "Nessun plugin installato!",
"list_update_to": "Aggiornamento a {{name}}",
"list_plug_actions_label": "Operazioni sui plugins"
}
@@ -1,4 +0,0 @@
{
"remote_cef_label": "Permetti il debug remoto di CEF",
"remote_cef_desc": "Permetti l'accesso non autenticato a chiunque sulla tua rete locale al debugger di CEF."
}
@@ -1,6 +0,0 @@
{
"developer_mode_label": "Modalità sviluppatore",
"developer_mode_desc": "Abilità le impostazioni di sviluppo di Decky.",
"manual_plugin_label": "Installazione manuale plugins",
"manual_plugin_install_button": "Installa"
}
@@ -1,6 +0,0 @@
{
"general_title": "Generali",
"plugins_title": "Plugins",
"developer_title": "Sviluppatore",
"navbar_settings": "Impostazioni Decky"
}
-19
View File
@@ -1,19 +0,0 @@
{
"store_tabs_title": "Naviga",
"store_tabs_about": "About",
"store_tabs_alph_desc": "Alfabetico (A a Z)",
"store_tabs_alph_asce": "Alfabetico (Z a A)",
"store_sort_label": "Ordina",
"store_sort_label_def": "Ultimo aggiornato (Più recente)",
"store_filter_label": "Filtra",
"store_fiter_label_def": "Tutto",
"store_search_label": "Cerca",
"store_testing_cta": "Valuta la possibilità di testare nuovi plugin per aiutare il team di Decky Loader!",
"store_contrib_label": "Contribuisci",
"store_contrib_desc": "Se desideri contribuire allo store di Decky, puoi trovare un template caricato su GitHub all'indirizzo SteamDeckHomebrew/decky-plugin-template. Informazioni riguardo sviluppo e distribuzione sono disponibili nel README.",
"store_source_label": "Codice Sorgente",
"store_source_desc": "Tutto il codice sorgente dei plugin è disponibile su GitHub all'indirizzo SteamDeckHomebrew/decky-plugin-database"
}
@@ -1,4 +0,0 @@
{
"store_channel_label": "Canale del negozio",
"custom_store_label": "Negozio custom"
}
-14
View File
@@ -1,14 +0,0 @@
{
"no_patch_notes_desc": "nessuna patch notes per questa versione",
"decky_updates": "Aggiornamenti di Decky",
"updates_label": "Aggiornamenti",
"updates_cur_version": "Versione attuale: {{ver}}",
"updates_lat_version": "Ultima versione: {{ver}}",
"updates_checking": "Controllando",
"updates_check_button": "Cerca aggiornamenti",
"updates_install_button": "Installa aggiornamento",
"updates_reloading": "Ricaricando",
"updates_updating": "Aggiornando"
}
@@ -1,13 +0,0 @@
{
"enabling": "Abilitando",
"disabling": "Disabilitando",
"decky_update_available": "Disponibile aggiornamento a {{tag_name}}!",
"plugin_update_one": "Aggiornamento disponibile per un plugin!",
"plugin_update_other": "Aggiornamento disponibile per {{number}} plugins!",
"plugin_uninstall": "Rimuovo {{name}}?",
"plugin_load_error": "Errore caricando il plugin {{name}}",
"plugin_load_error_toast": "Errore caricando {{name}}",
"error": "Errore",
"plugin_error_uninstall": "Per rimuovere questo plugin vai su {{-icon}} nel menu di Decky.",
"file_picker_cancel_text": "Annullato dall'utente"
}
+28
View File
@@ -6,6 +6,33 @@ i18next
.use(Backend)
.use(initReactI18next)
.init({
backend:{
// path where resources get loaded from, or a function
// returning a path:
// function(lngs, namespaces) { return customPath; }
// the returned path will interpolate lng, ns if provided like giving a static path
// the function might return a promise
// returning falsy will abort the download
//
// If allowMultiLoading is false, lngs and namespaces will have only one element each,
// If allowMultiLoading is true, lngs and namespaces can have multiple elements
loadPath: 'http://127.0.0.1:1337/locales/{{lng}}/{{ns}}.json',
// your backend server supports multiloading
// /locales/resources.json?lng=de+en&ns=ns1+ns2
// Adapter is needed to enable MultiLoading https://github.com/i18next/i18next-multiload-backend-adapter
// Returned JSON structure in this case is
// {
// lang : {
// namespaceA: {},
// namespaceB: {},
// ...etc
// }
// }
allowMultiLoading: false, // set loadPath: '/locales/resources.json?lng={{lng}}&ns={{ns}}' to adapt to multiLoading
reloadInterval: false // can be used to reload resources in a specific interval (useful in server environments)
},
debug: true,
fallbackLng: 'en',
fallbackNS: 'Common',
@@ -13,6 +40,7 @@ i18next
interpolation: {
escapeValue: false,
},
load: 'languageOnly'
});
export default i18next;