summaryrefslogtreecommitdiff
path: root/threads.js
diff options
context:
space:
mode:
Diffstat (limited to 'threads.js')
-rw-r--r--threads.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/threads.js b/threads.js
index 335b5d0..51d1c9f 100644
--- a/threads.js
+++ b/threads.js
@@ -2572,6 +2572,17 @@ Process.prototype.reportTimer = function () {
return 0;
};
+Process.prototype.reportLanguage = function () {
+ var ide = this.homeContext.receiver.parentThatIsA(IDE_Morph);
+ if (ide) {
+ var lang = ide.userLanguage;
+ if (lang) {
+ return lang;
+ }
+ }
+ return 'en';
+};
+
// Process Dates and times in Snap
// Map block options to built-in functions
var dateMap = {