يمكن إنشاء صفحة توثيق الوحدة في وحدة:Wikidata.Ca/i18n/شرح

-- Translate and set up for your language
-- Please contact [[:ca:Module talk:Wikidades]] if you need any help

local i18n = {
	["errors"] = {
		["property-not-found"] = "الخاصية مفقودة.",
		["qualifier-not-found"] = "التصفية مفقودة.",
	},
	["datetime"] =
	{
		-- $1 is a placeholder for the actual number, or use the format of #time parser function
		["beforenow"] = "$1 BCE",	-- how to format negative numbers for precisions 0 to 5
		["afternow"] = "$1 CE",		-- how to format positive numbers for precisions 0 to 5
		["bc"] = '$1 "ق.م"',		-- how print negative years
		["ad"] = "$1",				-- how print 1st century AD dates
		
		[0] = "$1 مليار سنة",	-- precision: billion years
		[1] = "$100 مليون سنة",	-- precision: hundred million years
		[2] = "$10 مليون سنة",	-- precision: ten million years
		[3] = "$1 مليون سنة",	-- precision: million years
		[4] = "$100000 سنة",	-- precision: hundred thousand years; thousand separators added afterwards
		[5] = "$10000 سنة",		-- precision: ten thousand years; thousand separators added afterwards
		[6] = "$1 ألفية",		-- precision: millennium
		[7] = " القرن $1",		-- precision: century
		[8] = "عقد $1",			-- precision: decade
		[9] = "Y",				-- precision: year, 
		[10] = "F Y",			-- precision: month
		[11] = "j F Y",			-- precision: day
		
		["hms"] = {["hours"] = "h", ["minutes"] = "m", ["seconds"] = "s"},	-- duration: xh xm xs
	},
	
	["years-old"] = { 	--  in Arabic {"zero", "one", "two", "few 3-10", "many 11-99", "other 100-102"}
		"أقل من سنة",  
		"سنة", 
		"سنتان", 
		"$1 سنوات",
		"$1 سنة", 
		"$1 سنة"
	},
	
	["cite"] = {					-- cite parameters of local templates
		["title"] = "title",
		["author"] = "author",
		["date"] = "date",
		["pages"] = "pages",
		["language"] = "language",
		-- cite web parameters
		["url"] = "url",
		["website"] = "website",
		["access-date"] = "access-date",
		["archive-url"] = "archive-url",
		["archive-date"] = "archive-date",
		["publisher"] = "publisher",
		["quote"] = "quote",
		-- cite journal parameters
		["work"] = "work",
		["issue"] = "issue",
		["issn"] = "issn",
		["doi"] = "doi"
	},
	
	-- local wiki settings
	["addpencil"] = true, -- adds a pencil icon linked to Wikidata statement, planned to overwrite by Wikidata Bridge
	["categorylabels"] = "", -- Category:Pages with Wikidata labels not translated (void for no local category)
	["categoryprop"] = "تصنيف:صفحات تستخدم خاصية $1", -- Category:Pages using Wikidata property $1 
	["categoryref"] = "تصنيف:صفحات بها مراجع ويكي بيانات", -- Category:Pages with references from Wikidata 
	["addfallback"] = {'fa','fr', 'it', 'es', 'de', 'pt'}, -- additional fallback language codes, i.e. {'sv', 'de'}
	["suppressids"] = {   -- list of Qid values to suppress,
		'Q22282939' -- for no 'linguistic content'
	},
	["qidlabels"] = false -- show labels as Qid if no fallback translation is available (default true)
}

-- Functions for local grammatical cases (as ordinal) and local fixes (if used)
local cases = {
	-- local fixes
	-- ["infoboxlabel"] = function(word) return require("Module:Wikidades/labels").fixInfoboxLabel(word) end,
	-- ["infoboxdata"] = function(word) return require("Module:Wikidades/labels").fixInfoboxData(word) end,
	-- other local cases
}

return {
	i18n = i18n,
	cases = cases
}