File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change 27
27
#include "py/obj.h"
28
28
#include "py/objtuple.h"
29
29
30
- //| def getlocale(path: str, times: Tuple[int, int]) -> None:
31
- //| """Change the timestamp of a file."""
32
- //| ...
30
+ //| """Locale support module"""
31
+ //|
32
+ //| def getlocale() -> None:
33
+ //| """Returns the current locale setting as a tuple ``(language code, "utf-8")``
34
+ //|
35
+ //| The language code comes from the installed translation of CircuitPython, specifically the "Language:" code specified in the translation metadata.
36
+ //| This can be useful to allow modules coded in Python to show messages in the user's preferred language.
37
+ //|
38
+ //| Differences from CPython: No ``LC_*`` argument is permitted.
39
+ //| """
33
40
//|
34
41
STATIC mp_obj_t getlocale (void ) {
35
42
You can’t perform that action at this time.
0 commit comments