xlsform_languages: List the languages of an XLSForm

View source: R/language.R

xlsform_languagesR Documentation

List the languages of an XLSForm

Description

Finds the languages used in the ⁠label::<language>⁠ style columns of the survey and choices sheets, for example label::English (en), label::en or label::English.

Usage

xlsform_languages(xlsform)

Arguments

xlsform

Path to an XLSForm (.xlsx or .xls).

Value

A data.frame with one row per language and columns suffix (the text after ::), code, name and default (TRUE for the language used when no lang is requested: the default_language of the settings sheet if it matches, otherwise the first language). The data.frame has no rows for a single-language form.

Examples

path <- system.file("extdata", "multilang", "multilang.xlsx",
                    package = "convertxlsform")
xlsform_languages(path)

convertxlsform documentation built on Oct. 22, 2026, 1:07 a.m.