fugu13 / xapi-statement-builder

An xAPI Statement Builder library in Javascript, with support for Profiles.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add language specialization and removal

fugu13 opened this issue · comments

Right now all languages will be represented. When Activities and Verbs are pulled from Profiles, this might result in including a large number of unneeded languages.

Concept: include additional methods to narrow a statement to a particular language or languages, or no languages at all (as with retrieval via format=ids). Do so strictly, but warn if languages aren't present on elements (only if they have other languages? only with a certain flag?).

There are some complications in re partial language tag matches. By default attempt to be 'smart' and have an option that only does exact matches?