Skip to content

Commit

Permalink
revert open-status
Browse files Browse the repository at this point in the history
  • Loading branch information
Yen Truong committed Aug 19, 2021
1 parent 59768a8 commit f4213e7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions static/js/open-status-i18n.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
import { DayNames } from './hours/constants.js';
import { OpenStatusStrings } from './hours/open-status/constants.js';
import { getLanguageFromLocale } from './utils';

/**
* Provides translation data for the openStatus formatter.
* @param {string} locale
*/
export default function provideOpenStatusTranslation (locale) {
const language = getLanguageFromLocale(locale);
const language = (locale === 'zh-CN' || locale === 'zh-TW') ?
locale :
locale.substring(0,2);
return {
...provideTodaysMessageTranslation(language),
...provideDayTranslation(language)
Expand Down

0 comments on commit f4213e7

Please sign in to comment.