* Reorder Traditional Chinese keys to match en_US
Key order only, every value is unchanged: 90 objects listed their keys in a
different order from en_US. Keys that en_US no longer has stay where they were
and are removed in the next commit.
* Remove Traditional Chinese keys that en_US no longer has
70 keys with no counterpart in en_US.
* Update Traditional Chinese translation for 4.4: missing keys and consistent terminology
Follow-up to PR 16168.
- Translates the 20 keys added to en_US after that PR (AI assistant
reconnect, HTML page layout, IoT Hub search and filters, customer Agent
management, RPC params function, KPN downlink credentials, OPC-UA path
hints).
- Replaces mainland vocabulary with Taiwan usage: 滑桿, 長條圖, 醒目提示,
範例, 復原 for undo, 遞增/遞減, 發布 for publish, 計時器, 新增, 尚無,
滑鼠暫留, 覆寫 for overwrite, 單一, 內距.
- Keeps product names in Latin script: Agent, Remote Agent and Gateway
(«管理 Agent», «Gateway 名稱»), as Edge, IoT Hub, ThingsBoard and Trendz
already were.
- Writes secret as 密鑰 (client, provision, Edge, integration, routing and
application secret), so it no longer reads as the password 密碼.
- Fixes meaning errors: popover placements (topRight and rightTop were both
右上), «a month ago», Kafka bootstrap servers, «no profile specified» in
the set-default texts, three length limits that follow maxLength(255).
- One translation for each English string where the file had several, and
field labels that match their validation messages.
* Write JSON in capitals in Traditional Chinese texts
Follows the en_US change in PR 16507: «Json» becomes «JSON» in 5 strings.
Resolved the ui-ngx/package.json conflict: lts-4.4 added exceljs-hardened and flag-icons next to the echarts line; kept echarts 5.5.4-TB and both new dependencies.
5.5.4-TB is the ThingsBoard echarts fork's license-compliant release (thingsboard/echarts#3, #4). It brings zrender 5.5.1-TB, and the package metadata of both forks now points at the ThingsBoard repositories, so the UI SBOM links to the code that ships.
Proto3 JSON writes 64-bit integers as strings, so The Things Stack sends
uplink_message.settings.frequency (TxSettings.frequency, uint64) as
"868100000". The unwrapper parses the mapped 64-bit integer fields back
to numbers, so frequency stays a number while identifiers stay strings.
PROD-9057
Co-Authored-By: Claude <noreply@anthropic.com>
"New converter available" in Installed items opens "Update the converter?" instead of
the version update wizard. The dialog names the converter and, from the update check,
either warns that someone changed it (with a download of the current one) or lists the
other installed packages that use it. Update sends only the converter step, built from
ThingsBoard's default converter now, through the device package update.
An update to the installed version itself keeps the install state of the steps and forms
it leaves out, so the integration and its metadata stay as they are.
The wizard's error message, text-with-link and JSON download helpers move to
iot-hub-utils, and the installed device packages loader to iot-hub-default-converter,
for both to use.
Co-Authored-By: Claude <noreply@anthropic.com>
A device package's install state records, per INTEGRATION step, the metadata entries the step added to the integration (e.g. profile.milesight-iot-am308 -> the chosen profile name), both at install (UI) and on update (server). When the package is deleted and its integration is kept, because other installed packages use it or the package took it as it was, those entries are removed from the integration's configuration.metadata. Entries another installed package also recorded stay, and the integration is not saved when none of the package's entries is present. The integration checksum already leaves metadata out, so the remaining packages don't see the integration as changed.
Co-Authored-By: Claude <noreply@anthropic.com>
Values that the network server sends as JSON strings and that the typed
converter adds from the unwrapped event (devAddr, eui, joinEui, netId,
hardwareVersion, ...) skip the numeric type cast, so devAddr "01020304"
stays "01020304". Numbers from the event (fCnt, rssi, snr, ...) and the
decoder output are cast as before.
JsonConverter gets convertToTelemetryProto/convertToAttributesProto
overloads with a set of no-cast keys; the existing methods do not change.
PROD-9057
Co-Authored-By: Claude <noreply@anthropic.com>
Nashorn passes the payload as characters, so decoding it again as UTF-8 failed on a
unit like ℃ and the uplink was lost. Tested with simulated TTN uplinks of the
Lansitec datasheet examples, TBEL and JS give the same values.
The Lansitec codecs wrap everything in bytes, give numbers as strings with units and
get some fields wrong. The default converter unwraps them, names the keys as the
Lansitec datasheets do, decodes the wrong fields from the raw bytes, and writes the
Register message as attributes. The JS default reads the payload as UTF-8.
- UPLINK_CONVERTER step with "default": true and no template: the wizard builds the converter ThingsBoard creates for a new integration of the method's type (INTEGRATION_TTN: TTN) from the UI assets, and installs, overwrites and updates it like a template of the package.
- Installed items: a device package whose default converter differs from ThingsBoard's default converter now shows "New converter available". It opens the update of the installed version, which brings the converter to the default one. A package that took another package's converter overwrites it with the shared-entity warning.
- After an update overwrites an entity, the other packages that recorded its checksum record the new one.
- INTEGRATION step "metadata": its entries are added to the integration's metadata at create, overwrite, use existing and update; the entries the integration has stay. An entry that maps a name to itself (profile.<name>: <name>) isn't added. The checksum of an integration leaves out its metadata.
- The default TTN and TTI converters take the profile name from the integration metadata entry profile.<brand_id>-<model_id> when there is one.
- Form field "resettable": a field the user changed shows a button that puts its default value back.