efcsydney/efcsydney-roster

View on GitHub
client/src/i18n.js

Summary

Maintainability
D
2 days
Test Coverage
import i18next from 'i18next';

i18next.init({
  interpolation: {
    escapeValue: false
  },
  lng: 'en-AU',
  resources: {
    'en-AU': {
      translation: {
        common: {
          title: 'EFCOS English Service Roster'
        },
        DateBar: {
          dateString: '{{startMonth}} - {{endMonth}} {{year}}'
        },
        Desktop: {
          addCalByDownloadCsv: 'iCalendar',
          addCalByGoogle: 'Google',
          dateFormat: 'DD MMM',
          gridCanton: 'Date / Role',
          occassion: 'Occassion'
        },
        EditDay: {
          cancelLink: 'Cancel',
          dateFormat: 'DD MMM, YYYY',
          dateTitle: 'Date',
          footnotePlaceholder: 'e.g. Holy Communion',
          footnoteLabel: 'Details for this event',
          footnoteTitle: 'Occassion',
          saveLabel: 'Save',
          skipReason: 'Combined Service',
          skipService: 'Enable means cancellation or no one has to serve',
          title: 'Edit Day'
        },
        EditRole: {
          cancelLink: 'Cancel',
          dateFormat: 'DD MMM, YYYY',
          dateTitle: 'Date',
          promptSelection: 'Selected',
          promptSelectionNone: 'None',
          roleTitle: 'Role',
          nameTitle: 'Name',
          saveLabel: 'Save',
          title: 'Edit Role'
        },
        Mobile: {
          addCalLabel: 'Add Calendar',
          addCalByDownloadCsv: 'iCalendar',
          addCalByGoogle: 'Google Calendar',
          dateFormat: 'DD MMM'
        },
        NavBar: {
          chineseService: 'Chinese Sunday Service Roster',
          englishService: 'English Sunday Service Roster',
          orgTitle: 'EFC Sydney'
        }
      }
    },
    'zh-TW': {
      translation: {
        common: {
          title: 'EFCOS 中文堂事工輪值'
        },
        DateBar: {
          dateString: '{{year}}年{{startMonth}} - {{endMonth}}'
        },
        Desktop: {
          addCalByDownloadCsv: 'iCalendar',
          addCalByGoogle: 'Google 日曆',
          dateFormat: 'MMMDo',
          gridCanton: '日期',
          occassion: '型式'
        },
        EditDay: {
          cancelLink: '取消',
          dateFormat: 'YYYY年MMMDo',
          dateTitle: '日期',
          footnotePlaceholder: '範例:聯合崇拜',
          footnoteLabel: '本日的細節或說明',
          footnoteTitle: '型式',
          saveLabel: '儲存',
          skipService: '若啟用:本日不需服事人員或因故取消',
          skipReason: '聯合崇拜',
          title: '日期特別設定'
        },
        EditRole: {
          cancelLink: '取消',
          dateFormat: 'YYYY年MMMDo',
          dateTitle: '日期',
          promptSelection: '目前選取人員',
          promptSelectionNone: '無',
          roleTitle: '服事',
          nameTitle: '姓名',
          saveLabel: '儲存',
          title: '編輯服事人員'
        },
        Mobile: {
          addCalLabel: '加到我的行事曆',
          addCalByDownloadCsv: 'iCalendar',
          addCalByGoogle: 'Google 日曆',
          dateFormat: 'MMMDo'
        },
        NavBar: {
          chineseService: '中文堂服事表',
          englishService: '英文堂服事表',
          orgTitle: '雪梨台福教會'
        }
      }
    }
  }
});

export default i18next;