mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-15 07:42:23 +00:00
refactor(cockpit): a provider words its text with getLocale and onLocaleChange from the ./i18n entry; the ./i18n/locale export, which gave only those two, is removed
This commit is contained in:
1 parent
a7d722a1f4
commit
22f43aab01
8 files changed
+17
-51
No files matched your search
@@ -167,7 +167,7 @@ function refusal(provider, kinds) {
|
||||
* `entryFace`, `labels` and `look` may each be a function returning the
|
||||
* object: it is called on the provider again whenever they are shown and
|
||||
* when the page's language changes, so its words can follow it
|
||||
* (`./i18n/locale`). A read that throws or is malformed keeps the last
|
||||
* (`./i18n`). A read that throws or is malformed keeps the last
|
||||
* good one; `look` is on or off and `restPitchDeg` fixed as first read;
|
||||
* - `cameraIntervalMs` (optional): 0..1000, null for the Cockpit's default; 0
|
||||
* updates the camera every rendered frame;
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
/**
|
||||
* The page's language, for an application that words its own text beside
|
||||
* Core's: read the active locale, and hear when it changes. Core translates
|
||||
* only its own strings; text an application hands Core (a cockpit subject
|
||||
* provider's labels and HUD view, say) is shown as given, so the application
|
||||
* words it for `getLocale()` and words it again on `onLocaleChange`.
|
||||
*/
|
||||
export { getLocale, onLocaleChange } from './index.js';
|
||||
Reference in new issue
Block a user