Skip to content
Snippets Groups Projects
Commit 12b6a1d5 authored by Brandon Labuschagne's avatar Brandon Labuschagne
Browse files

I18N datetime utility file

This is one of many MRs opened in order to improve the overall
internationalisation of the GitLab codebase.

This commit only targets Vanilla JS files.

i18n documentation
https://docs.gitlab.com/ee/development/i18n/externalization.html
parent 31c32db2
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -81,7 +81,7 @@ export const getDayName = date =>
*/
export const formatDate = datetime => {
if (_.isString(datetime) && datetime.match(/\d+-\d+\d+ /)) {
throw new Error('Invalid date');
throw new Error(__('Invalid date'));
}
return dateFormat(datetime, 'mmm d, yyyy h:MMtt Z');
};
Loading
Loading
Loading
Loading
@@ -5384,6 +5384,9 @@ msgstr ""
msgid "Invalid Login or password"
msgstr ""
 
msgid "Invalid date"
msgstr ""
msgid "Invalid feature"
msgstr ""
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment