summaryrefslogtreecommitdiff
path: root/doc/todo/pull_request:_Locale.selectedFor_and_Locale.available_properties.mdwn
blob: b34118f08fb7785abfacee70cbc031bb9026b3cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Please consider merging branch `locale` of repo `https://git.spwhitton.name/propellor`

It adds the following properties:

- `Locale.selectedFor` to choose a locale for a locale variable
- `Locale.available`, used by `Locale.selectedFor` to ensure a locale is generated

Example usage (I'm British but I live in the US):

    & "en_GB.UTF-8" `Locale.selectedFor` ["LANG", "LANGUAGE"]
    & "en_US.UTF-8" `Locale.selectedFor` ["LC_PAPER"]

Pretty sure I've got the indentation right this time too ;)

> merged, thanks! [[done]] --[[Joey]]