import { defineConfig } from "@lingui/cli";
import { formatter } from "@lingui/format-po";

export default defineConfig({
	sourceLocale: "en-US",
	pseudoLocale: "zu-ZA",
	locales: [
		"af-ZA",
		"am-ET",
		"ar-SA",
		"az-AZ",
		"bg-BG",
		"bn-BD",
		"ca-ES",
		"cs-CZ",
		"da-DK",
		"de-DE",
		"el-GR",
		"en-US",
		"en-GB",
		"es-ES",
		"fa-IR",
		"fi-FI",
		"fr-FR",
		"he-IL",
		"hi-IN",
		"hu-HU",
		"id-ID",
		"it-IT",
		"ja-JP",
		"km-KH",
		"kn-IN",
		"ko-KR",
		"lt-LT",
		"lv-LV",
		"ml-IN",
		"mr-IN",
		"ms-MY",
		"ne-NP",
		"nl-NL",
		"no-NO",
		"or-IN",
		"pl-PL",
		"pt-BR",
		"pt-PT",
		"ro-RO",
		"ru-RU",
		"sk-SK",
		"sl-SI",
		"sq-AL",
		"sr-SP",
		"sv-SE",
		"ta-IN",
		"te-IN",
		"th-TH",
		"tr-TR",
		"uk-UA",
		"uz-UZ",
		"vi-VN",
		"zh-CN",
		"zh-TW",
		"zu-ZA",
	],
	fallbackLocales: {
		"zu-ZA": "en-US",
		default: "en-US",
	},
	format: formatter({
		lineNumbers: false,
	}),
	catalogs: [
		{
			path: "<rootDir>/locales/{locale}",
			include: ["src"],
		},
	],
});
