¶
luxe
API (2025.1.2
)¶
luxe: string/po
module¶
PO¶
import "luxe: string/po" for PO
no docs found
- parse_header(lines:
List
) - parse_elements(lines:
List
) - parse(asset_id:
String
, bytes:String
)
List
)
¶Result
no docs found
List
)
¶List
converts the lines into chunks separated by lines
String
, bytes: String
)
¶Result
no docs found
POData¶
import "luxe: string/po" for POData
no docs found
String
no docs found
Map
no docs found
Map
no docs found
String
, language: String
, headers: Map
)
¶POData
no docs found
unknown
no docs found
POElement¶
import "luxe: string/po" for POElement
An element inside the PO file
- id
- key
- file_index
- plural_id
- comments
- is_plural
- strings
- new(file_index:
Num
, key:String
, plural_id:String
, id:String
, strings:List
, comments:List
) - update_id(id:
String
) - update_comments(comments:
List
)
String
no docs found
String
no docs found
Num
no docs found
String
no docs found
String
no docs found
Bool
no docs found
List
no docs found
Num
, key: String
, plural_id: String
, id: String
, strings: List
, comments: List
)
¶POElement
no docs found
String
)
¶unknown
no docs found
List
)
¶unknown
no docs found
POHeader¶
import "luxe: string/po" for POHeader
a single header line
- key
- value
- file_index
- new(file_index:
Num
, key:String
, value:String
) - update_value(value:
String
)
String
no docs found
String
no docs found
Num
no docs found
Num
, key: String
, value: String
)
¶POHeader
no docs found
String
)
¶unknown
no docs found
POString¶
import "luxe: string/po" for POString
a single msgstr, with an optional [index]
String
no docs found
Num
no docs found
String
, index: Num
)
¶POString
no docs found