summaryrefslogtreecommitdiff
path: root/src/json
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-04-05 18:40:23 +0200
committerChristian Grothoff <christian@grothoff.org>2021-04-05 18:40:23 +0200
commit004a7c9d5447de29972af560765791066c198226 (patch)
treed9f6f05b7fcc8122ee6561cc083090865766fe85 /src/json
parent99fff4f98fd02dc14b4c18ba9fb05816979f0e5f (diff)
downloadexchange-004a7c9d5447de29972af560765791066c198226.tar.gz
exchange-004a7c9d5447de29972af560765791066c198226.tar.bz2
exchange-004a7c9d5447de29972af560765791066c198226.zip
implement convenience function to extract i18n values from JSON (for #6749)
Diffstat (limited to 'src/json')
-rw-r--r--src/json/json_helper.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/json/json_helper.c b/src/json/json_helper.c
index f3070588..2a9b01a7 100644
--- a/src/json/json_helper.c
+++ b/src/json/json_helper.c
@@ -493,4 +493,14 @@ TALER_JSON_spec_i18n_string (const char *name,
}
+struct GNUNET_JSON_Specification
+TALER_JSON_spec_i18n_str (const char *name,
+ const char **strptr)
+{
+ return TALER_JSON_spec_i18n_string (name,
+ getenv ("LANG"),
+ strptr);
+}
+
+
/* end of json/json_helper.c */