Added some more context about plugin context
Included the JS way of getting locale in a soy plugin - see []
@@ -164,13 +164,19 @@ compiler.
#### Contextual data available to plugins
-For Java, JavaPluginContext provides some contextual data.
+For Java,
+[`JavaPluginContext`](https://github.com/google/closure-templates/blob/master/java/src/com/google/template/soy/plugin/java/restricted/JavaPluginContext.java)
+provides some contextual data.
-* getULocale
+* JavaPluginContext#getULocale
Provides the current locale being used for rendering, as a
`com.ibm.icu.util.ULocale`.
+In JavaScript, you can use the Closure API
+[goog.LOCALE](https://google.github.io/closure-library/api/goog.locale.html) to
+get the same information.
+
### 3. Register your plugin with the compiler
All SoySourceFunctions (e.g, `SoyJavaSourceFunction`) must be passed to the
