Method: Appwrite::Locale#list_codes

Defined in:
lib/appwrite/services/locale.rb

#list_codesLocaleCodeList

List of all locale codes in [ISO 639-1](en.wikipedia.org/wiki/List_of_ISO_639-1_codes).

Returns:

  • (LocaleCodeList)


44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# File 'lib/appwrite/services/locale.rb', line 44

def list_codes()
    api_path = '/locale/codes'

    api_params = {
    }
    
    api_headers = {
        "content-type": 'application/json',
    }

    @client.call(
        method: 'GET',
        path: api_path,
        headers: api_headers,
        params: api_params,
        response_type: Models::LocaleCodeList
    )
end