We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 918e244 commit 43e7fcbCopy full SHA for 43e7fcb
1 file changed
shared-bindings/locale/__init__.c
@@ -27,9 +27,16 @@
27
#include "py/obj.h"
28
#include "py/objtuple.h"
29
30
-//| def getlocale(path: str, times: Tuple[int, int]) -> None:
31
-//| """Change the timestamp of a file."""
32
-//| ...
+//| """Locale support module"""
+//|
+//| 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
+//| """
40
//|
41
STATIC mp_obj_t getlocale(void) {
42
0 commit comments