Home > @magiclane/maps-sdk > PTAlertTranslation

PTAlertTranslation class

A single translation entry of a service alert text.

Translations are passed through verbatim from the GTFS-RT feed - the language tag is a hint and may be inaccurate (some agencies tag untranslated text under multiple languages); fall back gracefully.

Maps & 3D Scene

Signature:

export declare class PTAlertTranslation 

Constructors

Constructor

Modifiers

Description

(constructor)({ language, text }, input)

Create a PTAlertTranslation.

API users do not typically create instances of this class directly.

Properties

Property

Modifiers

Type

Description

language

readonly

string

Language hint, passed through verbatim from the feed.

text

readonly

string

Translation text.