mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-23 08:15:22 +03:00
i18next uses `:` to denote a namespace for messages. The firmware flashing tab has a `flashingMessage` function that is used to update the bar at the bottom, it can either be passed a message key, or a properly formatted string. `Loaded Local Firmware: (473178 bytes)` was getting looked up as a key, which generates the following warning i18next.min.js:1 i18next::translator: key " (473178 bytes)" for namespace "Loaded Local Firmware" for languages "en" won't get resolved as namespace was not yet loaded This means something IS WRONG in your application setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!! Proposed fix is to just look at the message for a `:` and excluding those before asking the localization system if its a key. Revised to just remove the lookup |
||
---|---|---|
.. | ||
msp | ||
protocols | ||
tabs | ||
utils | ||
workers | ||
Analytics.js | ||
backup_restore.js | ||
Beepers.js | ||
boards.js | ||
CliAutoComplete.js | ||
Clipboard.js | ||
ConfigInserter.js | ||
ConfigStorage.js | ||
DarkTheme.js | ||
data_storage.js | ||
default_huffman_tree.js | ||
eventPage.js | ||
fc.js | ||
Features.js | ||
FirmwareCache.js | ||
gui.js | ||
huffman.js | ||
injected_methods.js | ||
jenkins_loader.js | ||
localization.js | ||
LogoManager.js | ||
main.js | ||
model.js | ||
msp.js | ||
peripherals.js | ||
port_handler.js | ||
port_usage.js | ||
RateCurve.js | ||
release_checker.js | ||
serial.js | ||
serial_backend.js | ||
TuningSliders.js |