Obscura.Language (obscura v0.1.0)

Copy Markdown View Source

Safe language normalization for analyzer options.

Summary

Functions

Normalizes a caller-provided language without creating atoms dynamically.

Returns supported language tags.

Functions

normalize(language)

@spec normalize(atom() | String.t()) :: {:ok, atom()} | {:error, term()}

Normalizes a caller-provided language without creating atoms dynamically.

supported()

@spec supported() :: [atom()]

Returns supported language tags.