Index: src/extensions/i18n/i18n-extension.cc |
diff --git a/src/extensions/i18n/i18n-extension.cc b/src/extensions/i18n/i18n-extension.cc |
index b110b7d80ed2e8e20eeff55731a732bfd0b2a979..1c77b8899fbcfe527a38bd573de58747f3a7fc20 100644 |
--- a/src/extensions/i18n/i18n-extension.cc |
+++ b/src/extensions/i18n/i18n-extension.cc |
@@ -30,6 +30,8 @@ |
#include "break-iterator.h" |
#include "collator.h" |
+#include "date-format.h" |
+#include "locale.h" |
#include "natives.h" |
#include "number-format.h" |
@@ -47,6 +49,26 @@ Extension::Extension() |
v8::Handle<v8::FunctionTemplate> Extension::GetNativeFunction( |
v8::Handle<v8::String> name) { |
+ // Standalone, helper methods. |
+ if (name->Equals(v8::String::New("NativeJSCanonicalizeLanguageTag"))) { |
+ return v8::FunctionTemplate::New(JSCanonicalizeLanguageTag); |
+ } else if (name->Equals(v8::String::New("NativeJSAvailableLocalesOf"))) { |
+ return v8::FunctionTemplate::New(JSAvailableLocalesOf); |
+ } else if (name->Equals(v8::String::New("NativeJSGetDefaultICULocale"))) { |
+ return v8::FunctionTemplate::New(JSGetDefaultICULocale); |
+ } else if (name->Equals(v8::String::New("NativeJSGetLanguageTagVariants"))) { |
+ return v8::FunctionTemplate::New(JSGetLanguageTagVariants); |
+ } |
+ |
+ // Date format and parse. |
+ if (name->Equals(v8::String::New("NativeJSCreateDateTimeFormat"))) { |
+ return v8::FunctionTemplate::New(DateFormat::JSCreateDateTimeFormat); |
+ } else if (name->Equals(v8::String::New("NativeJSInternalDateFormat"))) { |
+ return v8::FunctionTemplate::New(DateFormat::JSInternalFormat); |
+ } else if (name->Equals(v8::String::New("NativeJSInternalDateParse"))) { |
+ return v8::FunctionTemplate::New(DateFormat::JSInternalParse); |
+ } |
+ |
// Number format and parse. |
if (name->Equals(v8::String::New("NativeJSCreateNumberFormat"))) { |
return v8::FunctionTemplate::New(NumberFormat::JSCreateNumberFormat); |