Riksdagsmonitor Intelligence Platform - v0.7.19
    Preparing search index...
    • Translate a single Swedish term to the target language using the static dictionary. Matching is case-insensitive; the original case is preserved when no match is found.

      Parameters

      • text: string

        Swedish text to translate

      • targetLang: Language

        ISO 639-1 language code of the desired output language

      Returns string

      Translated text, or the original Swedish text if no translation exists