mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-26 09:45:28 +03:00
Parse messages file and use i18next vue plugin
This commit is contained in:
parent
f87c0f5461
commit
dba61bc652
10 changed files with 89 additions and 65 deletions
|
@ -4,14 +4,6 @@ import BatteryLegend from "./quad-status/BatteryLegend.vue";
|
|||
import BetaflightLogo from "./betaflight-logo/BetaflightLogo.vue";
|
||||
import StatusBar from "./status-bar/StatusBar.vue";
|
||||
|
||||
// a bit of a hack here to get around the current translations.
|
||||
// vue i18n provides slightly different api for this. But
|
||||
// it's also possible to provide custom formatter
|
||||
Vue.filter(
|
||||
"stripEnd",
|
||||
(value) => value.replace(/\$1%/, "")
|
||||
);
|
||||
|
||||
// Most of the global objects can go here at first.
|
||||
// It's a bit of overkill for simple components,
|
||||
// but these instance would eventually have more children
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue