본문으로 건너뛰기

i18n

Description

간트 차트 지역화를 위한 메서드 모음

i18n: GanttInternationalization

Details

The i18n 객체는 다음과 같은 메서드를 제공합니다:

  • addLocale(languageCode, localeObject) - Gantt에서 새로운 커스텀 로케일을 추가합니다
    • languageCode - (string) 두 글자 언어 코드
    • localeObject - (object) 로케일 객체
  • setLocale(localeObject: string|object) - 지정된 로케일을 활성화합니다

메서드는 매개변수로 언어 코드 또는 로케일 객체 중 하나를 받을 수 있습니다:

gantt.i18n.setLocale("fr");

또는 로케일 객체:

gantt.i18n.setLocale({
labels: {
new_task:"새 작업"
}
});
  • getLocale(languageCode : string) - 언어 코드에 해당하는 로케일 객체를 반환합니다

Change log

  • v7.0에 추가됨
Need help?
Got a question about the documentation? Reach out to our technical support team for help and guidance. For custom component solutions, visit the Services page.