(이미지 출처: WordPress.org)
.mo 포맷의 언어파일 로딩이 사이트 속도를 떨어트린다는 분석 이후, 워드프레스 퍼포먼스 팀에서 이를 .php로 자동 변화해 로딩하는 Performant Translations라는 플러그인을 내놓았습니다. 여기에 더해 워드프레스 6.5 부터는 PHP 포맷의 언어파일을 배포하기로 했습니다. 단, WordPress.org 외부에서 배포된 언어파일은 여전히 변환이 필요한 만큼 Performant Translation 사용이 완전히 불필요해진 것은 아닙니다.
“워드프레스 6.5 이상에서 이 플러그인은 자동으로 .mo 파일을 .php 파일로 변환하고 이후에는 .php 파일을 로드합니다. 따라서 WordPress.org가 아닌 곳에서 다운로드한 번역 파일을 사용할 때 유용합니다.
On WordPress 6.5+, this plugin automatically converts existing
– 출처: Performant Translations 소개 –.mofiles to.phpand afterwards only loads the translations from the.phpfile. This is useful for cases where language packs are not downloaded from WordPress.org but somewhere else.”
워드프레스 6.5는 2024년 4월에 정식 배포될 예정이며, Performant Translations도 계속 업데이트될 예정이라고 합니다.