@goodandready/dsh-russian-lang 0.1.19 → 0.1.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Binary file
Binary file
package/lib/client.js CHANGED
@@ -3944,16 +3944,18 @@ window.__ModuleLoader__.load({
3944
3944
  else runtime.publish(wantRu ? 'ru' : 'en', true)
3945
3945
  } catch (err) { console.warn('dsh-russian-lang: toggle failed', err) }
3946
3946
  }
3947
- // Слот может быть не объявлен родительским элементом (например, если
3948
- // настроечный UI не загрузился). Тогда карточка не появится, но плагин
3949
- // переводы) продолжают работать не роняем всю загрузку.
3947
+ // Регистрируем карточку через inject: так слот объявляется родителю,
3948
+ // и карточка появляется в списке «Настройки Плагины». Без inject
3949
+ // register бросает "slot is not declared" на новых ядрах.
3950
3950
  try {
3951
- ctx.slots.register({
3952
- name: 'settings.plugin.item',
3953
- key: SETTINGS_NS_NAME,
3954
- locale: SETTINGS_NS_NAME,
3955
- inject: () => ({ scope, runtime, toggleRu }),
3956
- }, SettingsCard)
3951
+ ctx.slots.inject('settings.plugin.item', () =>
3952
+ ctx.slots.register({
3953
+ name: 'settings.plugin.item',
3954
+ key: SETTINGS_NS_NAME,
3955
+ locale: SETTINGS_NS_NAME,
3956
+ inject: () => ({ scope, runtime, toggleRu }),
3957
+ }, SettingsCard),
3958
+ )
3957
3959
  } catch (err) { console.warn('dsh-russian-lang: settings slot unavailable', err) }
3958
3960
  }
3959
3961
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goodandready/dsh-russian-lang",
3
- "version": "0.1.19",
3
+ "version": "0.1.20",
4
4
  "description": "Russian localization for the DeepSeek Harness web UI: adds Русский as the third option in the native Settings - General - Language menu. Translates the full core surface (100% coverage of DSH 0.1.1-rc.2) plus 16 community plugin namespaces - 52 namespaces, 2795 strings (many machine-drafted, queued for manual review), with Russian plural forms, count-key plurals, a typography pass (guillemets, em dash, nbsp), a wrong-layout input hint and browser spellcheck. The locale runtime snapshot is extended at runtime on unpatched cores; no files in the DSH installation are modified. The choice is persisted through the plugin-owned russian-lang namespace.",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",