diff --git a/src/components/Sankey/SankeyChart.css b/src/components/Sankey/SankeyChart.css index 8d8ae7e0..75349851 100644 --- a/src/components/Sankey/SankeyChart.css +++ b/src/components/Sankey/SankeyChart.css @@ -215,6 +215,54 @@ .block.highlight:not(.with-background) .label { color: #000000 !important; } + + /* Debug styles for clickable blocks */ + .block.clickable { + cursor: pointer !important; + transition: all 0.2s ease-in-out; + } + + .block.clickable * { + cursor: pointer !important; + } + + .block.clickable:hover { + transform: scale(1.02); + box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); + } + + .block.clickable .label-name { + transition: all 0.2s ease-in-out; + cursor: pointer !important; + } + + .block.clickable .label-name a { + cursor: pointer !important; + } + + .block.clickable .label { + cursor: pointer !important; + } + + .sankey-chart-container .block.clickable:hover .label-name { + text-decoration: underline !important; + text-decoration-color: #FF0000 !important; + text-underline-offset: 2px !important; + text-decoration-thickness: 3px !important; + border-bottom: 3px solid #FF0000 !important; + cursor: pointer !important; + background-color: rgba(255, 0, 0, 0.2) !important; + } + + .sankey-chart-container .block.clickable:hover .label-name a { + text-decoration: underline !important; + text-decoration-color: #FF0000 !important; + text-underline-offset: 2px !important; + text-decoration-thickness: 3px !important; + border-bottom: 3px solid #FF0000 !important; + cursor: pointer !important; + background-color: rgba(255, 0, 0, 0.2) !important; + } .sankey-chart-svg .link { opacity: 0.5; diff --git a/src/components/Sankey/SankeyChart.tsx b/src/components/Sankey/SankeyChart.tsx index b8dcac90..ffea3813 100644 --- a/src/components/Sankey/SankeyChart.tsx +++ b/src/components/Sankey/SankeyChart.tsx @@ -1,25 +1,12 @@ import { hierarchy } from 'd3' +import { useRouter } from 'next/navigation' import { useCallback, useEffect, useState } from 'react' import Select from 'react-select' import './SankeyChart.css' import { SankeyData } from './SankeyChartD3' import { SankeyChartSingle } from './SankeyChartSingle' -import { formatNumber, sortNodesByAmount, transformToIdBased } from './utils' - -type FlatDataNodes = ReturnType['nodes'] -type Node = FlatDataNodes[number] & { - realValue?: number -} - -interface HoverNodeType extends Node { - percent: number; - blockRect?: DOMRect; -} - -interface SearchOptionType { - value: string; - label: string; -} +import { formatNumber, transformToIdBased } from './utils' +import { departmentNames, departmentMappings } from './departmentMap' const getFlatData = (data: SankeyData) => { const revenueRoot = hierarchy(data.revenue_data).sum(d => { @@ -44,135 +31,167 @@ const getFlatData = (data: SankeyData) => { value: d.value, type: 'spending' })) - ].sort((a, b) => { - return (a.displayName || a.name || "").localeCompare(b.displayName || b.name || ""); - }), - revenueTotal: revenueRoot.value ?? 0, - spendingTotal: spendingRoot.value ?? 0 + ] } } -const chartHeight = 760 -const amountScalingFactor = 1e9 - -const chartConfig = { - revenue: { - id: 'revenue-chart-root', - colors: { - primary: '#249EDC' - }, - direction: 'right-to-left', - differenceLabel: 'Deficit' - }, - spending: { - id: 'spending-chart-root', - colors: { - primary: '#E3007D' - }, - direction: 'left-to-right', - differenceLabel: 'Surplus' - } -} as const +type FlatDataNodes = ReturnType['nodes'] +type Node = FlatDataNodes[number] & { + realValue?: number +} -type SankeyChartProps = { - data: SankeyData +interface HoverNodeType extends Node { + percent: number; + blockRect?: DOMRect; } -export function SankeyChart(props: SankeyChartProps) { - const [chartData, setChartData] = useState(null) - const [flatData, setFlatData] = useState(null) +interface SearchOptionType { + value: string; + label: string; +} - const [searchedNode, setSearchedNode] = useState(null) - const [searchResult, setSearchResult] = useState(null) +export function SankeyChart({ + data, + shouldIncludeNode = () => true, + displayName = {} +}: { + data: SankeyData + shouldIncludeNode?: (node: Node) => boolean + displayName?: { [nodeId: string]: string } +}) { + const router = useRouter() const [hoverNode, setHoverNode] = useState(null) - // Mouse position as fallback - ensures tooltip still works if blockRect is missing const [mousePosition, setMousePosition] = useState<{ x: number; y: number } | null>(null) - const [totalAmount, setTotalAmount] = useState(0) + const [searchOptions, setSearchOptions] = useState([]) + const [tooltipTimeout, setTooltipTimeout] = useState(null) + + const { nodes } = getFlatData(data) + // Process nodes for search options useEffect(() => { - // Transform the data to use ID-based structure - const transformedData = { - ...props.data, - revenue_data: transformToIdBased(props.data.revenue_data), - spending_data: transformToIdBased(props.data.spending_data) - } + const options = nodes + .filter(node => shouldIncludeNode(node) && node.type === 'spending') + .sort((a, b) => { + const aValue = (a as any).realValue || a.value || 0 + const bValue = (b as any).realValue || b.value || 0 + return bValue - aValue + }) + .slice(0, 10) // Top 10 spending items + .map(node => ({ + value: node.id, + label: `${displayName[node.id] || node.name} (${formatNumber((node as any).realValue || node.value || 0)})` + })) - setChartData(transformedData) - const { nodes, revenueTotal, spendingTotal } = getFlatData(transformedData) - - setFlatData(nodes) - setTotalAmount(Math.max(revenueTotal, spendingTotal)) - }, [props.data]) - - const handleSearch = (selected: SearchOptionType | null) => { - setSearchedNode(selected) - - if (!selected) { - return setSearchResult(null) - } - - let node = flatData?.find(d => d.id === selected.value) + setSearchOptions(options) + }, [nodes, shouldIncludeNode, displayName]) - // If it's a leaf node, we need to find the parent node - if (!node?.children) { - node = flatData?.find(d => d.id === node?.parent) + const handleDepartmentSelect = useCallback((option: SearchOptionType | null) => { + if (option) { + // Navigate to the department's first matching node + console.log('Selected department:', option.value) } + }, []) - setSearchResult(node ?? null) - } - - const handleMouseOver = useCallback((totalAmount: number) => { - return (node: Node, event?: MouseEvent) => { - const percent = (node.realValue! / totalAmount) * 100 + const handleNodeHover = useCallback((node: Node | null, event?: MouseEvent) => { + if (node) { + const blockRect = (event?.target as HTMLElement)?.getBoundingClientRect() + const totalSpending = getFlatData(data).nodes + .filter(n => n.type === 'spending' && (n.value || 0) > 0) + .reduce((sum, n) => sum + ((n as any).realValue || n.value || 0), 0) + setHoverNode({ ...node, - percent, + percent: (((node as any).realValue || node.value || 0) / totalSpending) * 100, + blockRect: blockRect }) - // Store mouse position as fallback for tooltip positioning + if (event) { setMousePosition({ x: event.clientX, y: event.clientY }) } + } else { + // Delayed hide to allow mouse to move to tooltip + const timeout = setTimeout(() => { + setHoverNode(null) + setMousePosition(null) + }, 300) // 300ms delay + + setTooltipTimeout(timeout) } - }, []) + }, [data]) + + const handleTooltipMouseEnter = useCallback(() => { + // Cancel hiding tooltip when mouse enters tooltip + if (tooltipTimeout) { + clearTimeout(tooltipTimeout) + setTooltipTimeout(null) + } + }, [tooltipTimeout]) - const handleMouseOut = useCallback(() => { + const handleTooltipMouseLeave = useCallback(() => { + // Hide tooltip immediately when mouse leaves tooltip area setHoverNode(null) setMousePosition(null) + if (tooltipTimeout) { + clearTimeout(tooltipTimeout) + setTooltipTimeout(null) + } + }, [tooltipTimeout]) + + const getDepartmentName = (url: string): string => { + return departmentNames[url] || 'Government Department' + } + + const getDepartmentUrl = (nodeName: string): string | undefined => { + const normalizedName = (nodeName || '').toLowerCase() + for (const [key, url] of Object.entries(departmentMappings)) { + if (normalizedName.includes(key)) { + return url + } + } + return undefined + } + + const handleClick = useCallback(() => { + // Click functionality removed - links are now only in tooltips + return }, []) return (
-
-
- ({ + ...base, + color: '#000' + }), + input: base => ({ + ...base, + color: '#fff' + }), + singleValue: base => ({ + ...base, + color: '#fff' + }), + control: (base) => ({ + ...base, + color: '#fff', + backgroundColor: '#000', + borderColor: '#444' + }) + }} + />
@@ -180,6 +199,8 @@ export function SankeyChart(props: SankeyChartProps) { {hoverNode && (
-

{hoverNode.displayName || hoverNode.name}

-
- {formatNumber(hoverNode.realValue ?? 0, amountScalingFactor)} - - {hoverNode.percent.toFixed(1)}% +
+
+

{displayName[hoverNode.id] || hoverNode.displayName || hoverNode.name || 'Unknown'}

+
+
+

Amount: + {formatNumber((hoverNode as any).realValue ?? 0, 1e9)} +

+

Percentage: {hoverNode.percent.toFixed(2)}%

+ + {(() => { + const url = getDepartmentUrl(hoverNode.displayName || hoverNode.name || '') + if (url) { + const departmentName = getDepartmentName(url) + return ( + + ) + } + return null + })()} +
- )} - - {chartData && !searchResult && ( -
- + )} - -
- )} - - {searchResult && ( -
- -
- )} +
) } - - diff --git a/src/components/Sankey/SankeyChartD3.tsx b/src/components/Sankey/SankeyChartD3.tsx index 62270370..1c6115b6 100644 --- a/src/components/Sankey/SankeyChartD3.tsx +++ b/src/components/Sankey/SankeyChartD3.tsx @@ -13,6 +13,7 @@ export type SankeyNode = { name?: string // Optional: for backward compatibility amount: number children?: SankeyNode[] + link?: string // Optional: URL link for clickable nodes } export type SankeyData = { @@ -45,6 +46,7 @@ export type SankeyChartD3Props = { amountScalingFactor?: number onMouseOver?: (node: any) => void onMouseOut?: (node: any) => void + onClick?: (node: any) => void } export class SankeyChartD3 { params: SankeyChartD3Props @@ -72,7 +74,8 @@ export class SankeyChartD3 { differenceLabel: 'Deficit', amountScalingFactor: 1e9, onMouseOver: () => {}, - onMouseOut: () => {} + onMouseOut: () => {}, + onClick: () => {} }, props ) @@ -114,17 +117,16 @@ export class SankeyChartD3 { // Calculates dimensions and sets up the scaling function setChartDimensions() { - let { width, height, margin } = this.params + const { width, height, margin } = this.params if (!width) { const w = this.container.node().getBoundingClientRect().width if (w) { - width = w this.params.width = w } } - this.chartWidth = width - margin.left - margin.right + this.chartWidth = (this.params.width || width) - margin.left - margin.right this.chartHeight = height - margin.top - margin.bottom this.scale = scaleLinear() @@ -209,6 +211,13 @@ export class SankeyChartD3 { .attr('class', 'block') .style('position', 'relative') .classed('fake', d => d.fake) + .classed('clickable', d => { + const hasLink = !!d.link + if (hasLink) { + console.log('Block with clickable class:', d.displayName, 'link:', d.link) + } + return hasLink + }) .classed( 'with-background', d => d.amount < 0 || this.scale(d.value) < this.params.shortBlockHeight @@ -239,6 +248,9 @@ export class SankeyChartD3 { this.highlightNode(null) this.params.onMouseOut(d) }) + .on('click', (e, d) => { + this.params.onClick(d) + }) blocks .selectAll('.label') @@ -351,7 +363,7 @@ export class SankeyChartD3 { .selectAll('.block:not(.fake)') .classed('highlight', function (x) { if (nodesToHighlight.includes(x.id)) { - // @ts-ignore + // @ts-expect-error: D3 element typing complexity highlightedNodeElements.push(this.querySelector('.label')) return true } diff --git a/src/components/Sankey/SankeyChartSingle.tsx b/src/components/Sankey/SankeyChartSingle.tsx index b2704f06..d24288c1 100644 --- a/src/components/Sankey/SankeyChartSingle.tsx +++ b/src/components/Sankey/SankeyChartSingle.tsx @@ -17,7 +17,8 @@ export function SankeyChartSingle(props: SankeyChartProps) { height = 760, amountScalingFactor = 1e9, onMouseOver = () => { }, - onMouseOut = () => { } + onMouseOut = () => { }, + onClick = () => { } } = props; const chartRef = useRef(null) @@ -37,7 +38,8 @@ export function SankeyChartSingle(props: SankeyChartProps) { amountScalingFactor, colors, onMouseOver, - onMouseOut + onMouseOut, + onClick }) }, // No need to add other dependencies because the chart is only rendered once diff --git a/src/components/Sankey/departmentMap.ts b/src/components/Sankey/departmentMap.ts new file mode 100644 index 00000000..fcf99e8a --- /dev/null +++ b/src/components/Sankey/departmentMap.ts @@ -0,0 +1,164 @@ +// Department name and mapping config for Sankey + +export const departmentNames: Record = { + '/spending/health-canada': 'Health Canada', + '/spending/veterans-affairs': 'Veterans Affairs Canada', + '/spending/employment-and-social-development-canada': 'Employment and Social Development Canada', + '/spending/housing-infrastructure-communities': 'Housing, Infrastructure and Communities Canada', + '/spending/innovation-science-and-industry': 'Innovation, Science and Economic Development Canada', + '/spending/national-defence': 'Department of National Defence', + '/spending/indigenous-services-and-northern-affairs': 'Indigenous Services Canada and Crown-Indigenous Relations', + '/spending/global-affairs-canada': 'Global Affairs Canada', + '/spending/public-safety-canada': 'Public Safety Canada', + '/spending/transport-canada': 'Transport Canada', + '/spending/canada-revenue-agency': 'Canada Revenue Agency', + '/spending/immigration-refugees-and-citizenship': 'Immigration, Refugees and Citizenship Canada', + '/spending/public-services-and-procurement-canada': 'Public Services and Procurement Canada', + '/spending/department-of-finance': 'Department of Finance Canada' +} + +export const departmentMappings: Record = { + // Health Canada + 'health': '/spending/health-canada', + 'health research': '/spending/health-canada', + 'health care systems + protection': '/spending/health-canada', + 'food safety': '/spending/health-canada', + 'public health + disease prevention': '/spending/health-canada', + 'health transfer to provinces': '/spending/health-canada', + 'first nations and inuit health infrastructure support': '/spending/health-canada', + 'first nations and inuit primary health care': '/spending/health-canada', + + // Veterans Affairs Canada + 'support for veterans': '/spending/veterans-affairs', + 'veteran pensions': '/spending/veterans-affairs', + 'veteran benefits': '/spending/veterans-affairs', + + // Employment and Social Development Canada (ESDC) + 'employment + training': '/spending/employment-and-social-development-canada', + 'employment insurance': '/spending/employment-and-social-development-canada', + 'old age security': '/spending/employment-and-social-development-canada', + 'canada pension plan': '/spending/employment-and-social-development-canada', + 'social security': '/spending/employment-and-social-development-canada', + 'retirement benefits': '/spending/employment-and-social-development-canada', + "children's benefits": '/spending/employment-and-social-development-canada', + 'covid-19 income support': '/spending/employment-and-social-development-canada', + 'canada emergency wage subsidy': '/spending/employment-and-social-development-canada', + + // Housing, Infrastructure and Communities Canada (HICC) + 'housing assistance': '/spending/housing-infrastructure-communities', + 'infrastructure investments': '/spending/housing-infrastructure-communities', + 'community infrastructure grants': '/spending/housing-infrastructure-communities', + 'interim housing assistance': '/spending/housing-infrastructure-communities', + 'sustainable bases, it systems, infrastructure': '/spending/housing-infrastructure-communities', + + // Innovation, Science and Economic Development Canada (ISED) + 'innovation + research': '/spending/innovation-science-and-industry', + 'investment, growth and commercialization': '/spending/innovation-science-and-industry', + 'research': '/spending/innovation-science-and-industry', + 'statistics canada': '/spending/innovation-science-and-industry', + 'economic development in southern ontario': '/spending/innovation-science-and-industry', + 'economic development in atlantic canada': '/spending/innovation-science-and-industry', + 'economic development in the pacific region': '/spending/innovation-science-and-industry', + 'western + northern economic development': '/spending/innovation-science-and-industry', + 'economic development in northern ontario': '/spending/innovation-science-and-industry', + 'economic development in quebec': '/spending/innovation-science-and-industry', + 'other boards + councils': '/spending/innovation-science-and-industry', + 'space': '/spending/innovation-science-and-industry', + + // National Defence + 'defence': '/spending/national-defence', + 'defence team': '/spending/national-defence', + 'defence operations + internal services': '/spending/national-defence', + 'other defence': '/spending/national-defence', + + // Indigenous Services Canada and Crown-Indigenous Relations + 'indigenous priorities': '/spending/indigenous-services-and-northern-affairs', + 'indigenous well-being + self determination': '/spending/indigenous-services-and-northern-affairs', + 'grants to support the new fiscal relationship with first nations': '/spending/indigenous-services-and-northern-affairs', + 'first nations elementary and secondary educational advancement': '/spending/indigenous-services-and-northern-affairs', + 'other support for indigenous well-being': '/spending/indigenous-services-and-northern-affairs', + 'crown-indigenous relations': '/spending/indigenous-services-and-northern-affairs', + 'other grants and contributions to support crown-indigenous relations': '/spending/indigenous-services-and-northern-affairs', + + // Global Affairs Canada + 'international affairs': '/spending/global-affairs-canada', + 'international diplomacy': '/spending/global-affairs-canada', + 'other international affairs activities': '/spending/global-affairs-canada', + 'development, peace + security programming': '/spending/global-affairs-canada', + 'official languages + culture': '/spending/global-affairs-canada', + + // Public Safety Canada + 'public safety': '/spending/public-safety-canada', + 'corrections': '/spending/public-safety-canada', + 'other public safety expenses': '/spending/public-safety-canada', + 'csis': '/spending/public-safety-canada', + 'rcmp': '/spending/public-safety-canada', + 'disaster relief': '/spending/public-safety-canada', + 'community safety': '/spending/public-safety-canada', + 'justice system': '/spending/public-safety-canada', + 'communications security establishment': '/spending/public-safety-canada', + + // Immigration, Refugees and Citizenship Canada (IRCC) + 'immigration + border security': '/spending/immigration-refugees-and-citizenship', + 'border security': '/spending/immigration-refugees-and-citizenship', + 'other immigration services': '/spending/immigration-refugees-and-citizenship', + 'citizenship + passports': '/spending/immigration-refugees-and-citizenship', + 'settlement assistance': '/spending/immigration-refugees-and-citizenship', + 'visitors, international students + temporary workers': '/spending/immigration-refugees-and-citizenship', + + // Transport Canada + 'transportation': '/spending/transport-canada', + 'excise tax — aviation gasoline and jet fuel': '/spending/transport-canada', + 'coastguard operations': '/spending/transport-canada', + + // Canada Revenue Agency + 'revenue canada': '/spending/canada-revenue-agency', + 'taxation': '/spending/canada-revenue-agency', + 'tax collection': '/spending/canada-revenue-agency', + 'carbon tax rebate': '/spending/canada-revenue-agency', + + // Public Services and Procurement Canada + 'other public services + procurement': '/spending/public-services-and-procurement-canada', + 'defence procurement': '/spending/public-services-and-procurement-canada', + 'government it operations': '/spending/public-services-and-procurement-canada', + + // Department of Finance Canada + 'banking + finance': '/spending/department-of-finance', + 'transfers to provinces': '/spending/department-of-finance', + 'social transfer to provinces': '/spending/department-of-finance', + 'equalization payments to provinces': '/spending/department-of-finance', + 'territorial formula financing': '/spending/department-of-finance', + + // Environment and Climate Change Canada (missing from URL structure, using closest) + 'environment and climate change': '/spending/innovation-science-and-industry', + 'other environment and climate change programs': '/spending/innovation-science-and-industry', + 'weather services': '/spending/innovation-science-and-industry', + 'nature conservation': '/spending/innovation-science-and-industry', + 'national parks': '/spending/innovation-science-and-industry', + + // Fisheries and Oceans Canada (missing from URL structure, using closest) + 'fisheries': '/spending/innovation-science-and-industry', + 'fisheries + aquatic ecosystems': '/spending/innovation-science-and-industry', + 'other fisheries expenses': '/spending/innovation-science-and-industry', + + // Agriculture and Agri-Food Canada (missing from URL structure, using closest) + 'agriculture': '/spending/innovation-science-and-industry', + + // Natural Resources Canada (missing from URL structure, using closest) + 'natural resources management': '/spending/innovation-science-and-industry', + 'innovative and sustainable natural resources development': '/spending/innovation-science-and-industry', + 'support for global competition': '/spending/innovation-science-and-industry', + 'nuclear labs + decommissioning': '/spending/innovation-science-and-industry', + 'natural resources science + risk mitigation': '/spending/innovation-science-and-industry', + 'other natural resources management support': '/spending/innovation-science-and-industry', + + // Gender Equality (Status of Women Canada) - part of Women and Gender Equality Canada + 'gender equality': '/spending/employment-and-social-development-canada', + + // Additional Treasury Board items (missing from URL structure) + 'treasury board': '/spending/public-services-and-procurement-canada', + 'parliament': '/spending/public-services-and-procurement-canada', + 'privy council office': '/spending/public-services-and-procurement-canada', + 'office of the secretary to the governor general': '/spending/public-services-and-procurement-canada', + 'office of the chief electoral officer': '/spending/public-services-and-procurement-canada' +} diff --git a/src/components/Sankey/index.tsx b/src/components/Sankey/index.tsx index 7b2be798..e5038b15 100644 --- a/src/components/Sankey/index.tsx +++ b/src/components/Sankey/index.tsx @@ -9,8 +9,131 @@ export function Sankey() { const { t } = useLingui() const data = useMemo(() => { + // Helper function to add links to nodes based on their names + // eslint-disable-next-line @typescript-eslint/no-explicit-any + const addLinksToNodes = (node: any): any => { + const getDepartmentLink = (nodeName: string): string | undefined => { + const normalizedName = nodeName.toLowerCase() + + // Department mappings based on spending categories + const departmentMappings: Record = { + // Health related - exact matches + 'health research': '/spending/health-canada', + 'health care systems + protection': '/spending/health-canada', + 'food safety': '/spending/health-canada', + 'public health + disease prevention': '/spending/health-canada', + 'health': '/spending/health-canada', + + // Veterans - exact matches + 'support for veterans': '/spending/veterans-affairs', + 'veteran pensions': '/spending/veterans-affairs', + 'veteran benefits': '/spending/veterans-affairs', + 'veterans': '/spending/veterans-affairs', + + // Revenue Agency - exact matches + 'revenue canada': '/spending/canada-revenue-agency', + 'taxation': '/spending/canada-revenue-agency', + 'tax collection': '/spending/canada-revenue-agency', + + // Employment and Social Development - exact matches + 'employment + training': '/spending/employment-and-social-development-canada', + 'employment insurance': '/spending/employment-and-social-development-canada', + 'old age security': '/spending/employment-and-social-development-canada', + 'canada pension plan': '/spending/employment-and-social-development-canada', + 'employment': '/spending/employment-and-social-development-canada', + + // Housing and Infrastructure - exact matches + 'housing assistance': '/spending/housing-infrastructure-communities', + 'housing': '/spending/housing-infrastructure-communities', + 'infrastructure': '/spending/housing-infrastructure-communities', + 'communities': '/spending/housing-infrastructure-communities', + + // Innovation, Science and Industry - exact matches + 'innovation + research': '/spending/innovation-science-and-industry', + 'investment, growth and commercialization': '/spending/innovation-science-and-industry', + 'research': '/spending/innovation-science-and-industry', + 'statistics canada': '/spending/innovation-science-and-industry', + 'innovation': '/spending/innovation-science-and-industry', + 'science': '/spending/innovation-science-and-industry', + 'industry': '/spending/innovation-science-and-industry', + + // Transport - exact matches + 'aviation': '/spending/transport-canada', + 'marine': '/spending/transport-canada', + 'rail': '/spending/transport-canada', + 'transport': '/spending/transport-canada', + 'transportation': '/spending/transport-canada', + + // Global Affairs - exact matches + 'international': '/spending/global-affairs-canada', + 'foreign affairs': '/spending/global-affairs-canada', + 'diplomatic': '/spending/global-affairs-canada', + 'global affairs': '/spending/global-affairs-canada', + + // Public Safety - exact matches + 'public safety': '/spending/public-safety-canada', + 'policing': '/spending/public-safety-canada', + 'security': '/spending/public-safety-canada', + 'corrections': '/spending/public-safety-canada', + + // Indigenous Services - exact matches + 'indigenous': '/spending/indigenous-services-and-northern-affairs', + 'first nations': '/spending/indigenous-services-and-northern-affairs', + 'northern affairs': '/spending/indigenous-services-and-northern-affairs', + + // Immigration - exact matches + 'immigration': '/spending/immigration-refugees-and-citizenship', + 'refugees': '/spending/immigration-refugees-and-citizenship', + 'citizenship': '/spending/immigration-refugees-and-citizenship', + + // Public Services and Procurement - exact matches + 'procurement': '/spending/public-services-and-procurement-canada', + 'public services': '/spending/public-services-and-procurement-canada', + + // Finance - exact matches + 'finance': '/spending/department-of-finance', + 'financial': '/spending/department-of-finance', + 'fiscal': '/spending/department-of-finance', + + // National Defence - exact matches + 'national defence': '/spending/national-defence', + 'defence': '/spending/national-defence', + 'military': '/spending/national-defence' + } - return JSON.parse(JSON.stringify({ + // Check for exact matches first + if (departmentMappings[normalizedName]) { + return departmentMappings[normalizedName] + } + + // Check for partial matches (contains) + for (const [key, url] of Object.entries(departmentMappings)) { + if (normalizedName.includes(key)) { + return url + } + } + + return undefined + } + + const processedNode = { ...node } + + // Add link if this node corresponds to a department + const link = getDepartmentLink(node.name || '') + if (link) { + processedNode.link = link + console.log(`Added link to node "${node.name}": ${link}`) + } + + // Recursively process children + if (node.children) { + processedNode.children = node.children.map(addLinksToNodes) + } + + return processedNode + } + + const rawData = { "total": 513.94, "spending": 513.94, "revenue": 459.53, @@ -795,9 +918,16 @@ export function Sankey() { } ] } - })) + } + + // Process the data to add links + const processedData = JSON.parse(JSON.stringify(rawData)) + processedData.spending_data = addLinksToNodes(processedData.spending_data) + processedData.revenue_data = addLinksToNodes(processedData.revenue_data) + + return processedData - }, []) + }, [t]) return ( diff --git a/src/locales/en.po b/src/locales/en.po index 6eb08074..1074c0cc 100644 --- a/src/locales/en.po +++ b/src/locales/en.po @@ -180,23 +180,23 @@ msgstr "Acquisition of Machinery and Equipment" msgid "Age" msgstr "Age" -#: src/components/Sankey/index.tsx:153 +#: src/components/Sankey/index.tsx:276 msgid "Agriculture" msgstr "Agriculture" -#: src/components/Sankey/index.tsx:738 +#: src/components/Sankey/index.tsx:861 msgid "Air Travellers Charge" msgstr "Air Travellers Charge" -#: src/components/Sankey/index.tsx:515 +#: src/components/Sankey/index.tsx:638 msgid "Alberta EQP" msgstr "Alberta EQP" -#: src/components/Sankey/index.tsx:401 +#: src/components/Sankey/index.tsx:524 msgid "Alberta HTP" msgstr "Alberta HTP" -#: src/components/Sankey/index.tsx:458 +#: src/components/Sankey/index.tsx:581 msgid "Alberta STP" msgstr "Alberta STP" @@ -244,7 +244,7 @@ msgstr "As of fiscal year end {0}" msgid "At this time, the best way to support us is through engagement and amplification of our content. If we open up to donations in the future, we'll let you know how you can contribute directly to our efforts." msgstr "At this time, the best way to support us is through engagement and amplification of our content. If we open up to donations in the future, we'll let you know how you can contribute directly to our efforts." -#: src/components/Sankey/index.tsx:161 +#: src/components/Sankey/index.tsx:284 msgid "Banking + Finance" msgstr "Banking + Finance" @@ -252,19 +252,19 @@ msgstr "Banking + Finance" msgid "Based on Data" msgstr "Based on Data" -#: src/components/Sankey/index.tsx:291 +#: src/components/Sankey/index.tsx:414 msgid "Border Security" msgstr "Border Security" -#: src/components/Sankey/index.tsx:519 +#: src/components/Sankey/index.tsx:642 msgid "British Columbia EQP" msgstr "British Columbia EQP" -#: src/components/Sankey/index.tsx:405 +#: src/components/Sankey/index.tsx:528 msgid "British Columbia HTP" msgstr "British Columbia HTP" -#: src/components/Sankey/index.tsx:462 +#: src/components/Sankey/index.tsx:585 msgid "British Columbia STP" msgstr "British Columbia STP" @@ -280,7 +280,7 @@ msgstr "Can I donate?" msgid "Can I get involved?" msgstr "Can I get involved?" -#: src/components/Sankey/index.tsx:242 +#: src/components/Sankey/index.tsx:365 msgid "Canada Emergency Wage Subsidy" msgstr "Canada Emergency Wage Subsidy" @@ -322,51 +322,47 @@ msgstr "Canada Student Loans Program: providing financial aid for post-secondary msgid "Canada, you need the facts." msgstr "Canada, you need the facts." -#: src/components/Sankey/index.tsx:75 +#: src/components/Sankey/index.tsx:198 msgid "Carbon Tax Rebate" msgstr "Carbon Tax Rebate" -#: src/components/Sankey/index.tsx:768 +#: src/components/Sankey/index.tsx:891 msgid "Carbon Taxes" msgstr "Carbon Taxes" -#: src/components/Sankey/index.tsx:651 +#: src/components/Sankey/index.tsx:774 msgid "Childhood Claims Settlement" msgstr "Childhood Claims Settlement" -#: src/components/Sankey/index.tsx:234 +#: src/components/Sankey/index.tsx:357 msgid "Children's Benefits" msgstr "Children's Benefits" -#: src/components/Sankey/index.tsx:311 +#: src/components/Sankey/index.tsx:434 msgid "Citizenship + Passports" msgstr "Citizenship + Passports" -#: src/components/Sankey/index.tsx:640 +#: src/components/Sankey/index.tsx:763 msgid "Claims Settlements" msgstr "Claims Settlements" -#: src/components/Sankey/index.tsx:139 +#: src/components/Sankey/index.tsx:262 msgid "Coastguard Operations" msgstr "Coastguard Operations" -#: src/app/[lang]/(main)/tax-visualizer/page.tsx:83 -msgid "Combined federal and provincial tax" -msgstr "Combined federal and provincial tax" - -#: src/components/Sankey/index.tsx:583 +#: src/components/Sankey/index.tsx:706 msgid "Communications Security Establishment" msgstr "Communications Security Establishment" -#: src/components/Sankey/index.tsx:107 +#: src/components/Sankey/index.tsx:230 msgid "Community and Regional Development" msgstr "Community and Regional Development" -#: src/components/Sankey/index.tsx:603 +#: src/components/Sankey/index.tsx:726 msgid "Community Infrastructure Grants" msgstr "Community Infrastructure Grants" -#: src/components/Sankey/index.tsx:270 +#: src/components/Sankey/index.tsx:393 msgid "Community Safety" msgstr "Community Safety" @@ -389,15 +385,15 @@ msgstr "Contact" msgid "Contributors / Supporters" msgstr "Contributors / Supporters" -#: src/components/Sankey/index.tsx:750 +#: src/components/Sankey/index.tsx:873 msgid "Corporate Income Taxes" msgstr "Corporate Income Taxes" -#: src/components/Sankey/index.tsx:258 +#: src/components/Sankey/index.tsx:381 msgid "Corrections" msgstr "Corrections" -#: src/components/Sankey/index.tsx:238 +#: src/components/Sankey/index.tsx:361 msgid "COVID-19 Income Support" msgstr "COVID-19 Income Support" @@ -417,23 +413,23 @@ msgstr "CRA's share of federal spending in FY 2024 was higher than in FY 1995" msgid "CRA's spending grew more than overall spending, meaning its share of the federal budget increased. In 2024, the agency accounted for 3.2% of all federal spending, 1.85 percentage points higher than in 1995." msgstr "CRA's spending grew more than overall spending, meaning its share of the federal budget increased. In 2024, the agency accounted for 3.2% of all federal spending, 1.85 percentage points higher than in 1995." -#: src/components/Sankey/index.tsx:775 +#: src/components/Sankey/index.tsx:898 msgid "Crown Corporations and other government business enterprises" msgstr "Crown Corporations and other government business enterprises" -#: src/components/Sankey/index.tsx:637 +#: src/components/Sankey/index.tsx:760 msgid "Crown-Indigenous Relations" msgstr "Crown-Indigenous Relations" -#: src/components/Sankey/index.tsx:254 +#: src/components/Sankey/index.tsx:377 msgid "CSIS" msgstr "CSIS" -#: src/app/[lang]/(main)/tax-visualizer/page.tsx:53 +#: src/app/[lang]/(main)/tax-visualizer/page.tsx:59 msgid "Currently supports Ontario only. More provinces coming soon." msgstr "Currently supports Ontario only. More provinces coming soon." -#: src/components/Sankey/index.tsx:727 +#: src/components/Sankey/index.tsx:850 msgid "Customs Duties" msgstr "Customs Duties" @@ -457,19 +453,19 @@ msgstr "Data updated March 20, 2025" msgid "Data updated March 21, 2025" msgstr "Data updated March 21, 2025" -#: src/components/Sankey/index.tsx:556 +#: src/components/Sankey/index.tsx:679 msgid "Defence" msgstr "Defence" -#: src/components/Sankey/index.tsx:579 +#: src/components/Sankey/index.tsx:702 msgid "Defence Operations + Internal Services" msgstr "Defence Operations + Internal Services" -#: src/components/Sankey/index.tsx:563 +#: src/components/Sankey/index.tsx:686 msgid "Defence Procurement" msgstr "Defence Procurement" -#: src/components/Sankey/index.tsx:571 +#: src/components/Sankey/index.tsx:694 msgid "Defence Team" msgstr "Defence Team" @@ -497,7 +493,7 @@ msgstr "Departments + Agencies" msgid "Despite these increases, significant challenges remain in areas such as housing, healthcare access, and infrastructure in remote Indigenous communities." msgstr "Despite these increases, significant challenges remain in areas such as housing, healthcare access, and infrastructure in remote Indigenous communities." -#: src/components/Sankey/index.tsx:672 +#: src/components/Sankey/index.tsx:795 msgid "Development, Peace + Security Programming" msgstr "Development, Peace + Security Programming" @@ -509,7 +505,7 @@ msgstr "Development, Peace and Security Programming: $5.37B" msgid "Direct spending refers to money allocated to government programs, employee salaries, and administrative expenses. Indirect spending includes federal transfers to individuals and provinces." msgstr "Direct spending refers to money allocated to government programs, employee salaries, and administrative expenses. Indirect spending includes federal transfers to individuals and provinces." -#: src/components/Sankey/index.tsx:266 +#: src/components/Sankey/index.tsx:389 msgid "Disaster Relief" msgstr "Disaster Relief" @@ -517,38 +513,42 @@ msgstr "Disaster Relief" msgid "DND's spending grew less than overall spending, meaning its share of the federal budget decreased. In 2024, the department accounted for 6.7% of all federal spending, 0.6 percentage points lower than in 1995." msgstr "DND's spending grew less than overall spending, meaning its share of the federal budget decreased. In 2024, the department accounted for 6.7% of all federal spending, 0.6 percentage points lower than in 1995." -#: src/components/Sankey/index.tsx:114 +#: src/components/Sankey/index.tsx:237 msgid "Economic Development in Atlantic Canada" msgstr "Economic Development in Atlantic Canada" -#: src/components/Sankey/index.tsx:126 +#: src/components/Sankey/index.tsx:249 msgid "Economic Development in Northern Ontario" msgstr "Economic Development in Northern Ontario" -#: src/components/Sankey/index.tsx:130 +#: src/components/Sankey/index.tsx:253 msgid "Economic Development in Quebec" msgstr "Economic Development in Quebec" -#: src/components/Sankey/index.tsx:110 +#: src/components/Sankey/index.tsx:233 msgid "Economic Development in Southern Ontario" msgstr "Economic Development in Southern Ontario" -#: src/components/Sankey/index.tsx:118 +#: src/components/Sankey/index.tsx:241 msgid "Economic Development in the Pacific Region" msgstr "Economic Development in the Pacific Region" -#: src/components/Sankey/index.tsx:83 +#: src/components/Sankey/index.tsx:206 msgid "Economy + Infrastructure" msgstr "Economy + Infrastructure" -#: src/components/Sankey/index.tsx:21 +#: src/components/Sankey/index.tsx:144 msgid "Economy and Standard of Living" msgstr "Economy and Standard of Living" -#: src/app/[lang]/(main)/tax-visualizer/page.tsx:86 +#: src/app/[lang]/(main)/tax-visualizer/page.tsx:92 msgid "Effective Rate" msgstr "Effective Rate" +#: src/app/[lang]/(main)/tax-visualizer/page.tsx:94 +msgid "Effective tax rate" +msgstr "Effective tax rate" + #: src/components/MainLayout/Footer.tsx:61 msgid "Email address" msgstr "Email address" @@ -557,11 +557,11 @@ msgstr "Email address" msgid "Email us at <0>hi@canadaspends.com or connect with us on X <1>@canada_spends and we'll get back to you as soon as we can." msgstr "Email us at <0>hi@canadaspends.com or connect with us on X <1>@canada_spends and we'll get back to you as soon as we can." -#: src/components/Sankey/index.tsx:619 +#: src/components/Sankey/index.tsx:742 msgid "Emergency Management Activities On-Reserve" msgstr "Emergency Management Activities On-Reserve" -#: src/components/Sankey/index.tsx:55 +#: src/components/Sankey/index.tsx:178 msgid "Employment + Training" msgstr "Employment + Training" @@ -573,15 +573,15 @@ msgstr "Employment and Social Development Canada" msgid "Employment and Social Development Canada | Canada Spends" msgstr "Employment and Social Development Canada | Canada Spends" -#: src/components/Sankey/index.tsx:230 +#: src/components/Sankey/index.tsx:353 msgid "Employment Insurance" msgstr "Employment Insurance" -#: src/components/Sankey/index.tsx:762 +#: src/components/Sankey/index.tsx:885 msgid "Employment Insurance Premiums" msgstr "Employment Insurance Premiums" -#: src/components/Sankey/index.tsx:710 +#: src/components/Sankey/index.tsx:833 msgid "Energy Taxes" msgstr "Energy Taxes" @@ -589,15 +589,15 @@ msgstr "Energy Taxes" msgid "Enter your email" msgstr "Enter your email" -#: src/app/[lang]/(main)/tax-visualizer/page.tsx:194 +#: src/app/[lang]/(main)/tax-visualizer/page.tsx:201 msgid "Enter your income to see a personalized breakdown of how much you contribute to different government services and programs." msgstr "Enter your income to see a personalized breakdown of how much you contribute to different government services and programs." -#: src/components/Sankey/index.tsx:165 +#: src/components/Sankey/index.tsx:288 msgid "Environment and Climate Change" msgstr "Environment and Climate Change" -#: src/components/Sankey/index.tsx:480 +#: src/components/Sankey/index.tsx:603 msgid "Equalization Payments to Provinces" msgstr "Equalization Payments to Provinces" @@ -629,6 +629,18 @@ msgstr "ESDC's share of federal spending in FY 2024 was lower than FY 1995" msgid "Established in 2005, ESDC is a federal department responsible for supporting Canadians through social programs and workforce development. It administers key programs such as Employment Insurance (EI), the Canada Pension Plan (CPP), Old Age Security (OAS), and skills training initiatives. ESDC also oversees Service Canada, which delivers government services directly to the public." msgstr "Established in 2005, ESDC is a federal department responsible for supporting Canadians through social programs and workforce development. It administers key programs such as Employment Insurance (EI), the Canada Pension Plan (CPP), Old Age Security (OAS), and skills training initiatives. ESDC also oversees Service Canada, which delivers government services directly to the public." +#: src/app/[lang]/(main)/tax-visualizer/page.tsx:89 +msgid "Estimated combined tax" +msgstr "Estimated combined tax" + +#: src/app/[lang]/(main)/tax-visualizer/page.tsx:79 +msgid "Estimated income tax paid to federal government" +msgstr "Estimated income tax paid to federal government" + +#: src/app/[lang]/(main)/tax-visualizer/page.tsx:84 +msgid "Estimated income tax paid to provincial government" +msgstr "Estimated income tax paid to provincial government" + #: src/app/[lang]/(main)/[jurisdiction]/page.tsx:190 msgid "Estimated provincial public service" msgstr "Estimated provincial public service" @@ -637,19 +649,19 @@ msgstr "Estimated provincial public service" msgid "Every year, hundreds of billions of dollars move through the Government of Canada's budget. This data is technically available but the information is difficult to understand and spread across PDFs and databases that most Canadians don't know about." msgstr "Every year, hundreds of billions of dollars move through the Government of Canada's budget. This data is technically available but the information is difficult to understand and spread across PDFs and databases that most Canadians don't know about." -#: src/components/Sankey/index.tsx:734 +#: src/components/Sankey/index.tsx:857 msgid "Excise Duties" msgstr "Excise Duties" -#: src/components/Sankey/index.tsx:717 +#: src/components/Sankey/index.tsx:840 msgid "Excise Tax - Diesel Fuel" msgstr "Excise Tax - Diesel Fuel" -#: src/components/Sankey/index.tsx:721 +#: src/components/Sankey/index.tsx:844 msgid "Excise Tax — Aviation Gasoline and Jet Fuel" msgstr "Excise Tax — Aviation Gasoline and Jet Fuel" -#: src/components/Sankey/index.tsx:713 +#: src/components/Sankey/index.tsx:836 msgid "Excise Tax — Gasoline" msgstr "Excise Tax — Gasoline" @@ -819,7 +831,7 @@ msgstr "Federal spending on Indigenous priorities may fluctuate over time due to msgid "Federal spending on public safety fluctuates based on evolving security threats, emergency events, and changes in government policy. Since 2005 shortly after it was established, Public Safety Canada's expenditures have increased by 69.6%, reflecting heightened investments in counterterrorism, cyber defence, and disaster response capabilities. The department's share of the federal budget has remained relatively flat from 2.6% in 2005 to 2.7% in 2024." msgstr "Federal spending on public safety fluctuates based on evolving security threats, emergency events, and changes in government policy. Since 2005 shortly after it was established, Public Safety Canada's expenditures have increased by 69.6%, reflecting heightened investments in counterterrorism, cyber defence, and disaster response capabilities. The department's share of the federal budget has remained relatively flat from 2.6% in 2005 to 2.7% in 2024." -#: src/app/[lang]/(main)/tax-visualizer/page.tsx:71 +#: src/app/[lang]/(main)/tax-visualizer/page.tsx:77 msgid "Federal Tax" msgstr "Federal Tax" @@ -838,15 +850,15 @@ msgstr "Financial Position {0}" msgid "Financial Year {0} {1} Government Revenue and Spending" msgstr "Financial Year {0} {1} Government Revenue and Spending" -#: src/components/Sankey/index.tsx:615 +#: src/components/Sankey/index.tsx:738 msgid "First Nations and Inuit Health Infrastructure Support" msgstr "First Nations and Inuit Health Infrastructure Support" -#: src/components/Sankey/index.tsx:627 +#: src/components/Sankey/index.tsx:750 msgid "First Nations and Inuit Primary Health Care" msgstr "First Nations and Inuit Primary Health Care" -#: src/components/Sankey/index.tsx:607 +#: src/components/Sankey/index.tsx:730 msgid "First Nations Elementary and Secondary Educational Advancement" msgstr "First Nations Elementary and Secondary Educational Advancement" @@ -854,15 +866,15 @@ msgstr "First Nations Elementary and Secondary Educational Advancement" msgid "Fiscal arrangements" msgstr "Fiscal arrangements" -#: src/components/Sankey/index.tsx:136 +#: src/components/Sankey/index.tsx:259 msgid "Fisheries" msgstr "Fisheries" -#: src/components/Sankey/index.tsx:143 +#: src/components/Sankey/index.tsx:266 msgid "Fisheries + Aquatic Ecosystems" msgstr "Fisheries + Aquatic Ecosystems" -#: src/components/Sankey/index.tsx:38 +#: src/components/Sankey/index.tsx:161 msgid "Food Safety" msgstr "Food Safety" @@ -870,15 +882,19 @@ msgstr "Food Safety" msgid "For example, during the COVID-19 pandemic, federal support programs led to a temporary surge in spending. ESDC expenditures increased from $63.3 billion in 2019 to $169.2 billion in 2021 before stabilizing in recent years." msgstr "For example, during the COVID-19 pandemic, federal support programs led to a temporary surge in spending. ESDC expenditures increased from $63.3 billion in 2019 to $169.2 billion in 2021 before stabilizing in recent years." +#: src/app/[lang]/(main)/tax-visualizer/page.tsx:239 +msgid "For further breakdowns of spending, see <0>Federal and <1>Provincial spending pages." +msgstr "For further breakdowns of spending, see <0>Federal and <1>Provincial spending pages." + #: src/app/[lang]/(main)/about/page.tsx:68 msgid "Frequently Asked Questions" msgstr "Frequently Asked Questions" -#: src/components/Sankey/index.tsx:335 +#: src/components/Sankey/index.tsx:458 msgid "Functioning of Government" msgstr "Functioning of Government" -#: src/components/Sankey/index.tsx:575 +#: src/components/Sankey/index.tsx:698 msgid "Future Force Design" msgstr "Future Force Design" @@ -894,7 +910,7 @@ msgstr "GAC accounted for 3.7% of all federal spending in FY 2024." msgid "GAC's expenditures are divided across five primary categories:" msgstr "GAC's expenditures are divided across five primary categories:" -#: src/components/Sankey/index.tsx:63 +#: src/components/Sankey/index.tsx:186 msgid "Gender Equality" msgstr "Gender Equality" @@ -942,11 +958,11 @@ msgstr "Global Affairs Canada spent $19.2 billion in fiscal year (FY) 2024, repr msgid "Global Affairs Canada, Spending by Entity, FY 2024" msgstr "Global Affairs Canada, Spending by Entity, FY 2024" -#: src/components/Sankey/index.tsx:706 +#: src/components/Sankey/index.tsx:829 msgid "Goods and Services Tax" msgstr "Goods and Services Tax" -#: src/components/Sankey/index.tsx:647 +#: src/components/Sankey/index.tsx:770 msgid "Gottfriedson Band Class Settlement" msgstr "Gottfriedson Band Class Settlement" @@ -954,7 +970,7 @@ msgstr "Gottfriedson Band Class Settlement" msgid "Government Departments explained" msgstr "Government Departments explained" -#: src/components/Sankey/index.tsx:329 +#: src/components/Sankey/index.tsx:452 msgid "Government IT Operations" msgstr "Government IT Operations" @@ -964,6 +980,10 @@ msgstr "Government IT Operations" msgid "Government Spending" msgstr "Government Spending" +#: src/app/[lang]/(main)/tax-visualizer/page.tsx:236 +msgid "Government spending is based on 2023-2024 fiscal spending. Attempts have been made to merge similar categories across federal and provincial spending. Transfer to Provinces are assumed to go entirely to Ontario for simplicity." +msgstr "Government spending is based on 2023-2024 fiscal spending. Attempts have been made to merge similar categories across federal and provincial spending. Transfer to Provinces are assumed to go entirely to Ontario for simplicity." + #. js-lingui-explicit-id #: src/app/[lang]/(main)/page.tsx:77 msgid "facts-1" @@ -981,7 +1001,7 @@ msgstr "Government Workforce" msgid "Government Workforce & Spending Data | See the Breakdown" msgstr "Government Workforce & Spending Data | See the Breakdown" -#: src/components/Sankey/index.tsx:599 +#: src/components/Sankey/index.tsx:722 msgid "Grants to Support the New Fiscal Relationship with First Nations" msgstr "Grants to Support the New Fiscal Relationship with First Nations" @@ -993,7 +1013,7 @@ msgstr "Have questions or feedback? Email us at hi@canadaspends.com or connect w msgid "Headcount" msgstr "Headcount" -#: src/components/Sankey/index.tsx:27 +#: src/components/Sankey/index.tsx:150 msgid "Health" msgstr "Health" @@ -1022,15 +1042,15 @@ msgstr "Health Canada is the federal department responsible for protecting and i msgid "Health Canada spent $13.7 billion in fiscal year (FY) 2024. This was 2.7% of the $513.9 billion in overall federal spending. The department ranked tenth among federal departments in total spending." msgstr "Health Canada spent $13.7 billion in fiscal year (FY) 2024. This was 2.7% of the $513.9 billion in overall federal spending. The department ranked tenth among federal departments in total spending." -#: src/components/Sankey/index.tsx:34 +#: src/components/Sankey/index.tsx:157 msgid "Health Care Systems + Protection" msgstr "Health Care Systems + Protection" -#: src/components/Sankey/index.tsx:30 +#: src/components/Sankey/index.tsx:153 msgid "Health Research" msgstr "Health Research" -#: src/components/Sankey/index.tsx:366 +#: src/components/Sankey/index.tsx:489 msgid "Health Transfer to Provinces" msgstr "Health Transfer to Provinces" @@ -1054,7 +1074,7 @@ msgstr "HICC administers the National Housing Strategy, which funds the construc msgid "HICC spent $14.5 billion in fiscal year (FY) 2024. This was 2.8% of the $513.9 billion in overall federal spending. The department ranked eighth among federal departments in total spending." msgstr "HICC spent $14.5 billion in fiscal year (FY) 2024. This was 2.8% of the $513.9 billion in overall federal spending. The department ranked eighth among federal departments in total spending." -#: src/components/Sankey/index.tsx:59 +#: src/components/Sankey/index.tsx:182 msgid "Housing Assistance" msgstr "Housing Assistance" @@ -1138,7 +1158,7 @@ msgstr "How did VAC spend its budget in FY24?" msgid "How has Public Safety Canada's spending changed?" msgstr "How has Public Safety Canada's spending changed?" -#: src/components/Sankey/index.tsx:288 +#: src/components/Sankey/index.tsx:411 msgid "Immigration + Border Security" msgstr "Immigration + Border Security" @@ -1222,19 +1242,11 @@ msgstr "In FY 2024, Transport Canada accounted for 1% of all federal spending, 0 msgid "In FY 2024, VAC reported total expenditures of $6.07 billion across two entities:" msgstr "In FY 2024, VAC reported total expenditures of $6.07 billion across two entities:" -#: src/app/[lang]/(main)/tax-visualizer/page.tsx:73 -msgid "Income tax paid to federal government" -msgstr "Income tax paid to federal government" - -#: src/app/[lang]/(main)/tax-visualizer/page.tsx:78 -msgid "Income tax paid to provincial government" -msgstr "Income tax paid to provincial government" - #: src/app/[lang]/(main)/spending/TenureChart.tsx:8 msgid "Indeterminate" msgstr "Indeterminate" -#: src/components/Sankey/index.tsx:593 +#: src/components/Sankey/index.tsx:716 msgid "Indigenous Priorities" msgstr "Indigenous Priorities" @@ -1250,11 +1262,11 @@ msgstr "Indigenous Services Canada (ISC) and Crown-Indigenous Relations and Nort msgid "Indigenous Services Canada + Crown-Indigenous Relations and Northern Affairs Canada" msgstr "Indigenous Services Canada + Crown-Indigenous Relations and Northern Affairs Canada" -#: src/components/Sankey/index.tsx:596 +#: src/components/Sankey/index.tsx:719 msgid "Indigenous Well-Being + Self Determination" msgstr "Indigenous Well-Being + Self Determination" -#: src/components/Sankey/index.tsx:746 +#: src/components/Sankey/index.tsx:869 msgid "Individual Income Taxes" msgstr "Individual Income Taxes" @@ -1274,11 +1286,11 @@ msgstr "Individual Income Taxes" msgid "Information" msgstr "Information" -#: src/components/Sankey/index.tsx:211 +#: src/components/Sankey/index.tsx:334 msgid "Infrastructure Investments" msgstr "Infrastructure Investments" -#: src/components/Sankey/index.tsx:86 +#: src/components/Sankey/index.tsx:209 msgid "Innovation + Research" msgstr "Innovation + Research" @@ -1295,7 +1307,7 @@ msgstr "Innovation, Science and Industry Canada (ISED) is led by the Minister of msgid "Innovation, Science and Industry Canada | Canada Spends" msgstr "Innovation, Science and Industry Canada | Canada Spends" -#: src/components/Sankey/index.tsx:189 +#: src/components/Sankey/index.tsx:312 msgid "Innovative and Sustainable Natural Resources Development" msgstr "Innovative and Sustainable Natural Resources Development" @@ -1303,7 +1315,7 @@ msgstr "Innovative and Sustainable Natural Resources Development" msgid "Interest on Debt" msgstr "Interest on Debt" -#: src/components/Sankey/index.tsx:303 +#: src/components/Sankey/index.tsx:426 msgid "Interim Housing Assistance" msgstr "Interim Housing Assistance" @@ -1325,19 +1337,19 @@ msgstr "Internal Revenues" msgid "International Advocacy and Diplomacy: $1B" msgstr "International Advocacy and Diplomacy: $1B" -#: src/components/Sankey/index.tsx:669 +#: src/components/Sankey/index.tsx:792 msgid "International Affairs" msgstr "International Affairs" -#: src/components/Sankey/index.tsx:680 +#: src/components/Sankey/index.tsx:803 msgid "International Development Research Centre" msgstr "International Development Research Centre" -#: src/components/Sankey/index.tsx:676 +#: src/components/Sankey/index.tsx:799 msgid "International Diplomacy" msgstr "International Diplomacy" -#: src/components/Sankey/index.tsx:89 +#: src/components/Sankey/index.tsx:212 msgid "Investment, Growth and Commercialization" msgstr "Investment, Growth and Commercialization" @@ -1381,7 +1393,7 @@ msgstr "ISED spent $10.2 billion in fiscal year (FY) 2024. This was 2% of the $5 msgid "It doesn't have to be this way." msgstr "It doesn't have to be this way." -#: src/components/Sankey/index.tsx:282 +#: src/components/Sankey/index.tsx:405 msgid "Justice System" msgstr "Justice System" @@ -1434,15 +1446,15 @@ msgstr "Major Programs and Services" msgid "Making Government Spending Clear | About Us | Canada Spends" msgstr "Making Government Spending Clear | About Us | Canada Spends" -#: src/components/Sankey/index.tsx:507 +#: src/components/Sankey/index.tsx:630 msgid "Manitoba EQP" msgstr "Manitoba EQP" -#: src/components/Sankey/index.tsx:393 +#: src/components/Sankey/index.tsx:516 msgid "Manitoba HTP" msgstr "Manitoba HTP" -#: src/components/Sankey/index.tsx:450 +#: src/components/Sankey/index.tsx:573 msgid "Manitoba STP" msgstr "Manitoba STP" @@ -1450,7 +1462,7 @@ msgstr "Manitoba STP" msgid "Ministries + Agencies" msgstr "Ministries + Agencies" -#: src/components/Sankey/index.tsx:791 +#: src/components/Sankey/index.tsx:914 msgid "Miscellaneous revenues" msgstr "Miscellaneous revenues" @@ -1493,23 +1505,23 @@ msgstr "National Defence, Spending by Entity, FY 2024" msgid "National Defence's share of federal spending in FY 2024 was lower than in FY 1995" msgstr "National Defence's share of federal spending in FY 2024 was lower than in FY 1995" -#: src/components/Sankey/index.tsx:180 +#: src/components/Sankey/index.tsx:303 msgid "National Parks" msgstr "National Parks" -#: src/components/Sankey/index.tsx:186 +#: src/components/Sankey/index.tsx:309 msgid "Natural Resources Management" msgstr "Natural Resources Management" -#: src/components/Sankey/index.tsx:201 +#: src/components/Sankey/index.tsx:324 msgid "Natural Resources Science + Risk Mitigation" msgstr "Natural Resources Science + Risk Mitigation" -#: src/components/Sankey/index.tsx:176 +#: src/components/Sankey/index.tsx:299 msgid "Nature Conservation" msgstr "Nature Conservation" -#: src/components/Sankey/index.tsx:356 +#: src/components/Sankey/index.tsx:479 msgid "Net actuarial losses" msgstr "Net actuarial losses" @@ -1517,35 +1529,35 @@ msgstr "Net actuarial losses" msgid "Net Debt" msgstr "Net Debt" -#: src/components/Sankey/index.tsx:779 +#: src/components/Sankey/index.tsx:902 msgid "Net Foreign Exchange Revenue" msgstr "Net Foreign Exchange Revenue" -#: src/components/Sankey/index.tsx:550 +#: src/components/Sankey/index.tsx:673 msgid "Net Interest on Debt" msgstr "Net Interest on Debt" -#: src/components/Sankey/index.tsx:495 +#: src/components/Sankey/index.tsx:618 msgid "New Brunswick EQP" msgstr "New Brunswick EQP" -#: src/components/Sankey/index.tsx:381 +#: src/components/Sankey/index.tsx:504 msgid "New Brunswick HTP" msgstr "New Brunswick HTP" -#: src/components/Sankey/index.tsx:438 +#: src/components/Sankey/index.tsx:561 msgid "New Brunswick STP" msgstr "New Brunswick STP" -#: src/components/Sankey/index.tsx:483 +#: src/components/Sankey/index.tsx:606 msgid "Newfoundland and Labrador EQP" msgstr "Newfoundland and Labrador EQP" -#: src/components/Sankey/index.tsx:369 +#: src/components/Sankey/index.tsx:492 msgid "Newfoundland and Labrador HTP" msgstr "Newfoundland and Labrador HTP" -#: src/components/Sankey/index.tsx:426 +#: src/components/Sankey/index.tsx:549 msgid "Newfoundland and Labrador STP" msgstr "Newfoundland and Labrador STP" @@ -1565,51 +1577,51 @@ msgstr "No, we're not copying the DOGE playbook from the US." msgid "Non-Partisan" msgstr "Non-Partisan" -#: src/components/Sankey/index.tsx:754 +#: src/components/Sankey/index.tsx:877 msgid "Non-resident Income Taxes" msgstr "Non-resident Income Taxes" -#: src/components/Sankey/index.tsx:527 +#: src/components/Sankey/index.tsx:650 msgid "Northwest Territories EQP" msgstr "Northwest Territories EQP" -#: src/components/Sankey/index.tsx:413 +#: src/components/Sankey/index.tsx:536 msgid "Northwest Territories HTP" msgstr "Northwest Territories HTP" -#: src/components/Sankey/index.tsx:470 +#: src/components/Sankey/index.tsx:593 msgid "Northwest Territories STP" msgstr "Northwest Territories STP" -#: src/components/Sankey/index.tsx:491 +#: src/components/Sankey/index.tsx:614 msgid "Nova Scotia EQP" msgstr "Nova Scotia EQP" -#: src/components/Sankey/index.tsx:377 +#: src/components/Sankey/index.tsx:500 msgid "Nova Scotia HTP" msgstr "Nova Scotia HTP" -#: src/components/Sankey/index.tsx:434 +#: src/components/Sankey/index.tsx:557 msgid "Nova Scotia STP" msgstr "Nova Scotia STP" -#: src/components/Sankey/index.tsx:197 +#: src/components/Sankey/index.tsx:320 msgid "Nuclear Labs + Decommissioning" msgstr "Nuclear Labs + Decommissioning" -#: src/components/Sankey/index.tsx:531 +#: src/components/Sankey/index.tsx:654 msgid "Nunavut EQP" msgstr "Nunavut EQP" -#: src/components/Sankey/index.tsx:417 +#: src/components/Sankey/index.tsx:540 msgid "Nunavut HTP" msgstr "Nunavut HTP" -#: src/components/Sankey/index.tsx:474 +#: src/components/Sankey/index.tsx:597 msgid "Nunavut STP" msgstr "Nunavut STP" -#: src/components/Sankey/index.tsx:547 +#: src/components/Sankey/index.tsx:670 msgid "Obligations" msgstr "Obligations" @@ -1671,41 +1683,41 @@ msgstr "of federal spending was by the Global Affairs Canada" msgid "of federal spending was by the Public Safety Canada" msgstr "of federal spending was by the Public Safety Canada" -#: src/components/Sankey/index.tsx:274 +#: src/components/Sankey/index.tsx:397 msgid "Office of the Chief Electoral Officer" msgstr "Office of the Chief Electoral Officer" -#: src/components/Sankey/index.tsx:350 +#: src/components/Sankey/index.tsx:473 msgid "Office of the Secretary to the Governor General" msgstr "Office of the Secretary to the Governor General" -#: src/components/Sankey/index.tsx:67 +#: src/components/Sankey/index.tsx:190 msgid "Official Languages + Culture" msgstr "Official Languages + Culture" -#: src/components/Sankey/index.tsx:611 +#: src/components/Sankey/index.tsx:734 msgid "On-reserve Income Support in Yukon Territory" msgstr "On-reserve Income Support in Yukon Territory" #: src/components/MainLayout/index.tsx:98 #: src/components/MainLayout/index.tsx:169 -#: src/app/[lang]/(main)/tax-visualizer/page.tsx:50 +#: src/app/[lang]/(main)/tax-visualizer/page.tsx:56 msgid "Ontario" msgstr "Ontario" -#: src/components/Sankey/index.tsx:503 +#: src/components/Sankey/index.tsx:626 msgid "Ontario EQP" msgstr "Ontario EQP" -#: src/components/Sankey/index.tsx:389 +#: src/components/Sankey/index.tsx:512 msgid "Ontario HTP" msgstr "Ontario HTP" -#: src/components/Sankey/index.tsx:446 +#: src/components/Sankey/index.tsx:569 msgid "Ontario STP" msgstr "Ontario STP" -#: src/components/Sankey/index.tsx:319 +#: src/components/Sankey/index.tsx:442 #: src/app/[lang]/(main)/spending/department-of-finance/MiniSankey.tsx:36 msgid "Other" msgstr "Other" @@ -1715,19 +1727,19 @@ msgstr "Other" msgid "Other {0} Government Ministries" msgstr "Other {0} Government Ministries" -#: src/components/Sankey/index.tsx:101 +#: src/components/Sankey/index.tsx:224 msgid "Other Boards + Councils" msgstr "Other Boards + Councils" -#: src/components/Sankey/index.tsx:587 +#: src/components/Sankey/index.tsx:710 msgid "Other Defence" msgstr "Other Defence" -#: src/components/Sankey/index.tsx:168 +#: src/components/Sankey/index.tsx:291 msgid "Other Environment and Climate Change Programs" msgstr "Other Environment and Climate Change Programs" -#: src/components/Sankey/index.tsx:731 +#: src/components/Sankey/index.tsx:854 msgid "Other Excise Taxes and Duties" msgstr "Other Excise Taxes and Duties" @@ -1735,43 +1747,43 @@ msgstr "Other Excise Taxes and Duties" msgid "Other expenditures" msgstr "Other expenditures" -#: src/components/Sankey/index.tsx:147 +#: src/components/Sankey/index.tsx:270 msgid "Other Fisheries Expenses" msgstr "Other Fisheries Expenses" -#: src/components/Sankey/index.tsx:661 +#: src/components/Sankey/index.tsx:784 msgid "Other Grants and Contributions to Support Crown-Indigenous Relations" msgstr "Other Grants and Contributions to Support Crown-Indigenous Relations" -#: src/components/Sankey/index.tsx:295 +#: src/components/Sankey/index.tsx:418 msgid "Other Immigration Services" msgstr "Other Immigration Services" -#: src/components/Sankey/index.tsx:688 +#: src/components/Sankey/index.tsx:811 msgid "Other International Affairs Activities" msgstr "Other International Affairs Activities" -#: src/components/Sankey/index.tsx:541 +#: src/components/Sankey/index.tsx:664 msgid "Other Major Transfers" msgstr "Other Major Transfers" -#: src/components/Sankey/index.tsx:205 +#: src/components/Sankey/index.tsx:328 msgid "Other Natural Resources Management Support" msgstr "Other Natural Resources Management Support" -#: src/components/Sankey/index.tsx:772 +#: src/components/Sankey/index.tsx:895 msgid "Other Non-tax Revenue" msgstr "Other Non-tax Revenue" -#: src/components/Sankey/index.tsx:278 +#: src/components/Sankey/index.tsx:401 msgid "Other Public Safety Expenses" msgstr "Other Public Safety Expenses" -#: src/components/Sankey/index.tsx:325 +#: src/components/Sankey/index.tsx:448 msgid "Other Public Services + Procurement" msgstr "Other Public Services + Procurement" -#: src/components/Sankey/index.tsx:655 +#: src/components/Sankey/index.tsx:778 msgid "Other Settlement Agreements" msgstr "Other Settlement Agreements" @@ -1794,11 +1806,11 @@ msgstr "Other subsidies and payments" msgid "Other Subsidies and Payments" msgstr "Other Subsidies and Payments" -#: src/components/Sankey/index.tsx:631 +#: src/components/Sankey/index.tsx:754 msgid "Other Support for Indigenous Well-Being" msgstr "Other Support for Indigenous Well-Being" -#: src/components/Sankey/index.tsx:703 +#: src/components/Sankey/index.tsx:826 msgid "Other Taxes and Duties" msgstr "Other Taxes and Duties" @@ -1806,15 +1818,15 @@ msgstr "Other Taxes and Duties" msgid "Our government is going to have to make hard choices about our nation's spending to ensure we can invest in creating a competitive, resilient, and independent nation. We care about giving Canadians the facts about spending so they can engage in this conversation with elected officials." msgstr "Our government is going to have to make hard choices about our nation's spending to ensure we can invest in creating a competitive, resilient, and independent nation. We care about giving Canadians the facts about spending so they can engage in this conversation with elected officials." -#: src/components/Sankey/index.tsx:643 +#: src/components/Sankey/index.tsx:766 msgid "Out of Court Settlement" msgstr "Out of Court Settlement" -#: src/components/Sankey/index.tsx:338 +#: src/components/Sankey/index.tsx:461 msgid "Parliament" msgstr "Parliament" -#: src/components/Sankey/index.tsx:759 +#: src/components/Sankey/index.tsx:882 msgid "Payroll Taxes" msgstr "Payroll Taxes" @@ -1862,23 +1874,23 @@ msgstr "Percentage of federal budget dedicated to Indigenous Priorities, FYs 199 msgid "Personnel" msgstr "Personnel" -#: src/components/Sankey/index.tsx:623 +#: src/components/Sankey/index.tsx:746 msgid "Prevention and Protection Services for Children, Youth, Families and Communities" msgstr "Prevention and Protection Services for Children, Youth, Families and Communities" -#: src/components/Sankey/index.tsx:487 +#: src/components/Sankey/index.tsx:610 msgid "Prince Edward Island EQP" msgstr "Prince Edward Island EQP" -#: src/components/Sankey/index.tsx:373 +#: src/components/Sankey/index.tsx:496 msgid "Prince Edward Island HTP" msgstr "Prince Edward Island HTP" -#: src/components/Sankey/index.tsx:430 +#: src/components/Sankey/index.tsx:553 msgid "Prince Edward Island STP" msgstr "Prince Edward Island STP" -#: src/components/Sankey/index.tsx:342 +#: src/components/Sankey/index.tsx:465 msgid "Privy Council Office" msgstr "Privy Council Office" @@ -1901,7 +1913,7 @@ msgstr "Professional + Special Services" msgid "Professional and Special Services" msgstr "Professional and Special Services" -#: src/app/[lang]/(main)/tax-visualizer/page.tsx:42 +#: src/app/[lang]/(main)/tax-visualizer/page.tsx:48 msgid "Province/Territory" msgstr "Province/Territory" @@ -1909,7 +1921,7 @@ msgstr "Province/Territory" msgid "Provincial organizations" msgstr "Provincial organizations" -#: src/app/[lang]/(main)/tax-visualizer/page.tsx:76 +#: src/app/[lang]/(main)/tax-visualizer/page.tsx:82 msgid "Provincial Tax" msgstr "Provincial Tax" @@ -1943,11 +1955,11 @@ msgstr "Public debt charges" msgid "Public Debt Charges" msgstr "Public Debt Charges" -#: src/components/Sankey/index.tsx:42 +#: src/components/Sankey/index.tsx:165 msgid "Public Health + Disease Prevention" msgstr "Public Health + Disease Prevention" -#: src/components/Sankey/index.tsx:251 +#: src/components/Sankey/index.tsx:374 msgid "Public Safety" msgstr "Public Safety" @@ -1985,7 +1997,7 @@ msgstr "Public Services and Procurement Canada (PSPC) is led by the Minister of msgid "Public Services and Procurement Canada | Canada Spends" msgstr "Public Services and Procurement Canada | Canada Spends" -#: src/components/Sankey/index.tsx:322 +#: src/components/Sankey/index.tsx:445 msgid "Public Works + Government Services" msgstr "Public Works + Government Services" @@ -1993,27 +2005,27 @@ msgstr "Public Works + Government Services" msgid "Quebec abatement" msgstr "Quebec abatement" -#: src/components/Sankey/index.tsx:499 +#: src/components/Sankey/index.tsx:622 msgid "Quebec EQP" msgstr "Quebec EQP" -#: src/components/Sankey/index.tsx:385 +#: src/components/Sankey/index.tsx:508 msgid "Quebec HTP" msgstr "Quebec HTP" -#: src/components/Sankey/index.tsx:442 +#: src/components/Sankey/index.tsx:565 msgid "Quebec STP" msgstr "Quebec STP" -#: src/components/Sankey/index.tsx:537 +#: src/components/Sankey/index.tsx:660 msgid "Quebec Tax Offset" msgstr "Quebec Tax Offset" -#: src/components/Sankey/index.tsx:262 +#: src/components/Sankey/index.tsx:385 msgid "RCMP" msgstr "RCMP" -#: src/components/Sankey/index.tsx:559 +#: src/components/Sankey/index.tsx:682 msgid "Ready Forces" msgstr "Ready Forces" @@ -2052,43 +2064,43 @@ msgstr "Repair + Maintenance" msgid "Repair and Maintenance" msgstr "Repair and Maintenance" -#: src/components/Sankey/index.tsx:93 +#: src/components/Sankey/index.tsx:216 msgid "Research" msgstr "Research" -#: src/components/Sankey/index.tsx:226 +#: src/components/Sankey/index.tsx:349 msgid "Retirement Benefits" msgstr "Retirement Benefits" -#: src/components/Sankey/index.tsx:783 +#: src/components/Sankey/index.tsx:906 msgid "Return on Investments" msgstr "Return on Investments" -#: src/components/Sankey/index.tsx:700 +#: src/components/Sankey/index.tsx:823 msgid "Revenue" msgstr "Revenue" -#: src/components/Sankey/index.tsx:51 +#: src/components/Sankey/index.tsx:174 msgid "Revenue Canada" msgstr "Revenue Canada" -#: src/components/Sankey/index.tsx:248 +#: src/components/Sankey/index.tsx:371 msgid "Safety" msgstr "Safety" -#: src/components/Sankey/index.tsx:787 +#: src/components/Sankey/index.tsx:910 msgid "Sales of Government Goods + Services" msgstr "Sales of Government Goods + Services" -#: src/components/Sankey/index.tsx:511 +#: src/components/Sankey/index.tsx:634 msgid "Saskatchewan EQP" msgstr "Saskatchewan EQP" -#: src/components/Sankey/index.tsx:397 +#: src/components/Sankey/index.tsx:520 msgid "Saskatchewan HTP" msgstr "Saskatchewan HTP" -#: src/components/Sankey/index.tsx:454 +#: src/components/Sankey/index.tsx:577 msgid "Saskatchewan STP" msgstr "Saskatchewan STP" @@ -2100,7 +2112,7 @@ msgstr "See how Canada's government spends tax dollars—track workforce data, s msgid "Service Canada: responsible for processing EI, CPP, and OAS benefits." msgstr "Service Canada: responsible for processing EI, CPP, and OAS benefits." -#: src/components/Sankey/index.tsx:299 +#: src/components/Sankey/index.tsx:422 msgid "Settlement Assistance" msgstr "Settlement Assistance" @@ -2124,11 +2136,11 @@ msgstr "Similarly, PSPC's expenditures experienced notable fluctuations during t msgid "Similarly, Transport Canada's expenditures experienced fluctuations during this period, increasing from approximately $3.2 billion​ in 2019 (adjusted for inflation) to $5.1B in 2024." msgstr "Similarly, Transport Canada's expenditures experienced fluctuations during this period, increasing from approximately $3.2 billion​ in 2019 (adjusted for inflation) to $5.1B in 2024." -#: src/components/Sankey/index.tsx:223 +#: src/components/Sankey/index.tsx:346 msgid "Social Security" msgstr "Social Security" -#: src/components/Sankey/index.tsx:423 +#: src/components/Sankey/index.tsx:546 msgid "Social Transfer to Provinces" msgstr "Social Transfer to Provinces" @@ -2146,11 +2158,11 @@ msgstr "Sources" msgid "Sources:" msgstr "Sources:" -#: src/components/Sankey/index.tsx:157 +#: src/components/Sankey/index.tsx:280 msgid "Space" msgstr "Space" -#: src/components/Sankey/index.tsx:18 +#: src/components/Sankey/index.tsx:141 #: src/components/MainLayout/Footer.tsx:103 msgid "Spending" msgstr "Spending" @@ -2160,11 +2172,11 @@ msgstr "Spending" msgid "Spending Database" msgstr "Spending Database" -#: src/components/Sankey/index.tsx:48 +#: src/components/Sankey/index.tsx:171 msgid "Standard of Living" msgstr "Standard of Living" -#: src/components/Sankey/index.tsx:24 +#: src/components/Sankey/index.tsx:147 msgid "Standard of Living and Assistance to Address Inequalities" msgstr "Standard of Living and Assistance to Address Inequalities" @@ -2172,7 +2184,7 @@ msgstr "Standard of Living and Assistance to Address Inequalities" msgid "Start reading" msgstr "Start reading" -#: src/components/Sankey/index.tsx:97 +#: src/components/Sankey/index.tsx:220 msgid "Statistics Canada" msgstr "Statistics Canada" @@ -2196,31 +2208,30 @@ msgstr "Subscribe to our newsletter" msgid "Support for Canada's Presence Abroad: $1.23B" msgstr "Support for Canada's Presence Abroad: $1.23B" -#: src/components/Sankey/index.tsx:684 +#: src/components/Sankey/index.tsx:807 msgid "Support for Embassies + Canada's Presence Abroad" msgstr "Support for Embassies + Canada's Presence Abroad" -#: src/components/Sankey/index.tsx:193 +#: src/components/Sankey/index.tsx:316 msgid "Support for Global Competition" msgstr "Support for Global Competition" -#: src/components/Sankey/index.tsx:71 +#: src/components/Sankey/index.tsx:194 msgid "Support for Veterans" msgstr "Support for Veterans" -#: src/components/Sankey/index.tsx:567 +#: src/components/Sankey/index.tsx:690 msgid "Sustainable Bases, IT Systems, Infrastructure" msgstr "Sustainable Bases, IT Systems, Infrastructure" -#: src/app/[lang]/(main)/tax-visualizer/page.tsx:229 -msgid "Tax calculations are based on 2025 federal and provincial tax brackets. Amounts under $20 are grouped into \"Other\" for conciseness." -msgstr "Tax calculations are based on 2025 federal and provincial tax brackets. Amounts under $20 are grouped into \"Other\" for conciseness." - -#: src/components/MainLayout/index.tsx:107 #: src/components/MainLayout/index.tsx:176 msgid "Tax Calculator" msgstr "Tax Calculator" +#: src/components/MainLayout/index.tsx:107 +msgid "Tax Visualizer" +msgstr "Tax Visualizer" + #: src/app/[lang]/(main)/spending/TenureChart.tsx:10 msgid "Term" msgstr "Term" @@ -2418,9 +2429,9 @@ msgstr "These Ministers are some of the <0>cabinet members who serve at the msgid "This ministry plays an important role in {0}'s government operations, delivering essential services and programs to residents across the province." msgstr "This ministry plays an important role in {0}'s government operations, delivering essential services and programs to residents across the province." -#: src/app/[lang]/(main)/tax-visualizer/page.tsx:223 -msgid "This visualization shows how your income tax contributions are allocated across different government programs and services based on current government spending patterns." -msgstr "This visualization shows how your income tax contributions are allocated across different government programs and services based on current government spending patterns." +#: src/app/[lang]/(main)/tax-visualizer/page.tsx:230 +msgid "This visualization shows how your income tax contributions are allocated across different government programs and services based on current government spending patterns. Amounts under $20 are grouped into \"Other\" for conciseness." +msgstr "This visualization shows how your income tax contributions are allocated across different government programs and services based on current government spending patterns. Amounts under $20 are grouped into \"Other\" for conciseness." #: src/app/[lang]/(main)/spending/health-canada/page.tsx:59 msgid "Through the Public Health Agency of Canada (PHAC), Health Canada monitors public health risks, manages disease outbreaks, and promotes health initiatives. It also funds medical research via the Canadian Institutes of Health Research (CIHR) and oversees healthcare services for Indigenous communities." @@ -2434,7 +2445,7 @@ msgstr "Total Debt" msgid "Total full-time equivalents" msgstr "Total full-time equivalents" -#: src/app/[lang]/(main)/tax-visualizer/page.tsx:81 +#: src/app/[lang]/(main)/tax-visualizer/page.tsx:87 msgid "Total Tax" msgstr "Total Tax" @@ -2442,7 +2453,7 @@ msgstr "Total Tax" msgid "Total Wages" msgstr "Total Wages" -#: src/components/Sankey/index.tsx:692 +#: src/components/Sankey/index.tsx:815 msgid "Trade and Investment" msgstr "Trade and Investment" @@ -2466,7 +2477,7 @@ msgstr "Trade and Investment: $380.3M" msgid "Transfer Payments" msgstr "Transfer Payments" -#: src/components/Sankey/index.tsx:362 +#: src/components/Sankey/index.tsx:485 msgid "Transfers to Provinces" msgstr "Transfers to Provinces" @@ -2491,7 +2502,7 @@ msgstr "Transport Canada is led by the Minister of Transport, who is appointed b msgid "Transport Canada spent $5.1 billion in fiscal year (FY) 2024. This was 1% of the $513.9 billion in overall federal spending. The department ranked fourteenth among federal departments in total spending." msgstr "Transport Canada spent $5.1 billion in fiscal year (FY) 2024. This was 1% of the $513.9 billion in overall federal spending. The department ranked fourteenth among federal departments in total spending." -#: src/components/Sankey/index.tsx:215 +#: src/components/Sankey/index.tsx:338 msgid "Transportation" msgstr "Transportation" @@ -2514,7 +2525,7 @@ msgstr "Transportation + Communication" msgid "Transportation and Communication" msgstr "Transportation and Communication" -#: src/components/Sankey/index.tsx:346 +#: src/components/Sankey/index.tsx:469 #: src/app/[lang]/(main)/spending/page.tsx:123 msgid "Treasury Board" msgstr "Treasury Board" @@ -2523,7 +2534,7 @@ msgstr "Treasury Board" msgid "Type of Tenure" msgstr "Type of Tenure" -#: src/app/[lang]/(main)/tax-visualizer/page.tsx:220 +#: src/app/[lang]/(main)/tax-visualizer/page.tsx:227 msgid "Understanding Your Tax Contribution" msgstr "Understanding Your Tax Contribution" @@ -2573,7 +2584,7 @@ msgstr "Veterans Affairs Canada | Canada Spends" msgid "View this chart in full screen" msgstr "View this chart in full screen" -#: src/components/Sankey/index.tsx:307 +#: src/components/Sankey/index.tsx:430 msgid "Visitors, International Students + Temporary Workers" msgstr "Visitors, International Students + Temporary Workers" @@ -2674,11 +2685,11 @@ msgstr "We were frustrated by the lack of clear, accessible, unbiased data on go msgid "We're strictly non-partisan—we don't judge policies or debate spending decisions. Our only goal is to ensure that every Canadian understands how the federal government spends money." msgstr "We're strictly non-partisan—we don't judge policies or debate spending decisions. Our only goal is to ensure that every Canadian understands how the federal government spends money." -#: src/components/Sankey/index.tsx:172 +#: src/components/Sankey/index.tsx:295 msgid "Weather Services" msgstr "Weather Services" -#: src/components/Sankey/index.tsx:122 +#: src/components/Sankey/index.tsx:245 msgid "Western + Northern Economic Development" msgstr "Western + Northern Economic Development" @@ -2706,8 +2717,8 @@ msgstr "When HICC was founded in FY 2005 as the Office of Infrastructure Canada, msgid "Where do you get the data on your website?" msgstr "Where do you get the data on your website?" -#: src/app/[lang]/(main)/tax-visualizer/page.tsx:192 -#: src/app/[lang]/(main)/tax-visualizer/page.tsx:214 +#: src/app/[lang]/(main)/tax-visualizer/page.tsx:199 +#: src/app/[lang]/(main)/tax-visualizer/page.tsx:221 msgid "Where Your Tax Dollars Go" msgstr "Where Your Tax Dollars Go" @@ -2775,22 +2786,18 @@ msgstr "Why did you start this project?" msgid "You deserve the facts" msgstr "You deserve the facts" -#: src/app/[lang]/(main)/tax-visualizer/page.tsx:88 -msgid "Your effective tax rate" -msgstr "Your effective tax rate" - -#: src/app/[lang]/(main)/tax-visualizer/page.tsx:226 -msgid "Your tax contributions are based off of employment income. Other sources of income, such as self-employment, investment income, and capital gains, are not included in the calculations. Deductions such as RRSP contributions are also not included." -msgstr "Your tax contributions are based off of employment income. Other sources of income, such as self-employment, investment income, and capital gains, are not included in the calculations. Deductions such as RRSP contributions are also not included." +#: src/app/[lang]/(main)/tax-visualizer/page.tsx:233 +msgid "Your tax contributions are approximated based on employment income. Deductions such as basic personal amount are estimated and included. Other sources of income, such as self-employment, investment income, and capital gains, are not included in the calculations. Deductions such as RRSP and FHSA contributions are also not included. Tax calculations are based on 2024 federal and provincial tax brackets." +msgstr "Your tax contributions are approximated based on employment income. Deductions such as basic personal amount are estimated and included. Other sources of income, such as self-employment, investment income, and capital gains, are not included in the calculations. Deductions such as RRSP and FHSA contributions are also not included. Tax calculations are based on 2024 federal and provincial tax brackets." -#: src/components/Sankey/index.tsx:523 +#: src/components/Sankey/index.tsx:646 msgid "Yukon EQP" msgstr "Yukon EQP" -#: src/components/Sankey/index.tsx:409 +#: src/components/Sankey/index.tsx:532 msgid "Yukon HTP" msgstr "Yukon HTP" -#: src/components/Sankey/index.tsx:466 +#: src/components/Sankey/index.tsx:589 msgid "Yukon STP" msgstr "Yukon STP" diff --git a/src/locales/fr.po b/src/locales/fr.po index 8a92d7f1..86828404 100644 --- a/src/locales/fr.po +++ b/src/locales/fr.po @@ -180,23 +180,23 @@ msgstr "Acquisition de machines et d'équipement" msgid "Age" msgstr "Âge" -#: src/components/Sankey/index.tsx:153 +#: src/components/Sankey/index.tsx:276 msgid "Agriculture" msgstr "Agriculture" -#: src/components/Sankey/index.tsx:738 +#: src/components/Sankey/index.tsx:861 msgid "Air Travellers Charge" msgstr "Frais des voyageurs aériens" -#: src/components/Sankey/index.tsx:515 +#: src/components/Sankey/index.tsx:638 msgid "Alberta EQP" msgstr "PEQ Alberta" -#: src/components/Sankey/index.tsx:401 +#: src/components/Sankey/index.tsx:524 msgid "Alberta HTP" msgstr "TCS Alberta" -#: src/components/Sankey/index.tsx:458 +#: src/components/Sankey/index.tsx:581 msgid "Alberta STP" msgstr "TCS Alberta" @@ -244,7 +244,7 @@ msgstr "" msgid "At this time, the best way to support us is through engagement and amplification of our content. If we open up to donations in the future, we'll let you know how you can contribute directly to our efforts." msgstr "Pour le moment, la meilleure façon de nous soutenir est de partager et d'amplifier notre contenu. Si nous acceptons des dons à l'avenir, nous vous informerons comment vous pourrez contribuer directement à nos efforts." -#: src/components/Sankey/index.tsx:161 +#: src/components/Sankey/index.tsx:284 msgid "Banking + Finance" msgstr "Banques + Finances" @@ -252,19 +252,19 @@ msgstr "Banques + Finances" msgid "Based on Data" msgstr "Basé sur les données" -#: src/components/Sankey/index.tsx:291 +#: src/components/Sankey/index.tsx:414 msgid "Border Security" msgstr "Sécurité frontalière" -#: src/components/Sankey/index.tsx:519 +#: src/components/Sankey/index.tsx:642 msgid "British Columbia EQP" msgstr "PEQ Colombie-Britannique" -#: src/components/Sankey/index.tsx:405 +#: src/components/Sankey/index.tsx:528 msgid "British Columbia HTP" msgstr "TCS Colombie-Britannique" -#: src/components/Sankey/index.tsx:462 +#: src/components/Sankey/index.tsx:585 msgid "British Columbia STP" msgstr "TCS Colombie-Britannique" @@ -280,7 +280,7 @@ msgstr "Puis-je faire un don?" msgid "Can I get involved?" msgstr "Puis-je m'impliquer?" -#: src/components/Sankey/index.tsx:242 +#: src/components/Sankey/index.tsx:365 msgid "Canada Emergency Wage Subsidy" msgstr "Subvention salariale d'urgence du Canada" @@ -322,51 +322,47 @@ msgstr "Programme canadien de prêts aux étudiants : fournir une aide financiè msgid "Canada, you need the facts." msgstr "Canada, vous avez besoin des faits." -#: src/components/Sankey/index.tsx:75 +#: src/components/Sankey/index.tsx:198 msgid "Carbon Tax Rebate" msgstr "Remboursement de la taxe sur le carbone" -#: src/components/Sankey/index.tsx:768 +#: src/components/Sankey/index.tsx:891 msgid "Carbon Taxes" msgstr "Taxes sur le carbone" -#: src/components/Sankey/index.tsx:651 +#: src/components/Sankey/index.tsx:774 msgid "Childhood Claims Settlement" msgstr "Règlement des revendications relatives à l'enfance" -#: src/components/Sankey/index.tsx:234 +#: src/components/Sankey/index.tsx:357 msgid "Children's Benefits" msgstr "Prestations pour enfants" -#: src/components/Sankey/index.tsx:311 +#: src/components/Sankey/index.tsx:434 msgid "Citizenship + Passports" msgstr "Citoyenneté + Passeports" -#: src/components/Sankey/index.tsx:640 +#: src/components/Sankey/index.tsx:763 msgid "Claims Settlements" msgstr "Règlements des revendications" -#: src/components/Sankey/index.tsx:139 +#: src/components/Sankey/index.tsx:262 msgid "Coastguard Operations" msgstr "Opérations de la Garde côtière" -#: src/app/[lang]/(main)/tax-visualizer/page.tsx:83 -msgid "Combined federal and provincial tax" -msgstr "" - -#: src/components/Sankey/index.tsx:583 +#: src/components/Sankey/index.tsx:706 msgid "Communications Security Establishment" msgstr "Centre de la sécurité des télécommunications" -#: src/components/Sankey/index.tsx:107 +#: src/components/Sankey/index.tsx:230 msgid "Community and Regional Development" msgstr "Développement communautaire et régional" -#: src/components/Sankey/index.tsx:603 +#: src/components/Sankey/index.tsx:726 msgid "Community Infrastructure Grants" msgstr "Subventions pour l'infrastructure communautaire" -#: src/components/Sankey/index.tsx:270 +#: src/components/Sankey/index.tsx:393 msgid "Community Safety" msgstr "Sécurité communautaire" @@ -389,15 +385,15 @@ msgstr "Contact" msgid "Contributors / Supporters" msgstr "Contributeurs / Supporteurs" -#: src/components/Sankey/index.tsx:750 +#: src/components/Sankey/index.tsx:873 msgid "Corporate Income Taxes" msgstr "Impôts sur le revenu des sociétés" -#: src/components/Sankey/index.tsx:258 +#: src/components/Sankey/index.tsx:381 msgid "Corrections" msgstr "Services correctionnels" -#: src/components/Sankey/index.tsx:238 +#: src/components/Sankey/index.tsx:361 msgid "COVID-19 Income Support" msgstr "Soutien au revenu COVID-19" @@ -417,23 +413,23 @@ msgstr "La part des dépenses fédérales de l'ARC en 2024 était plus élevée msgid "CRA's spending grew more than overall spending, meaning its share of the federal budget increased. In 2024, the agency accounted for 3.2% of all federal spending, 1.85 percentage points higher than in 1995." msgstr "Les dépenses de l'ARC ont augmenté plus que les dépenses globales, ce qui signifie que sa part du budget fédéral a augmenté. En 2024, l'agence représentait 3,2 % de toutes les dépenses fédérales, soit 1,85 point de pourcentage de plus qu'en 1995." -#: src/components/Sankey/index.tsx:775 +#: src/components/Sankey/index.tsx:898 msgid "Crown Corporations and other government business enterprises" msgstr "Sociétés d'État et autres entreprises publiques" -#: src/components/Sankey/index.tsx:637 +#: src/components/Sankey/index.tsx:760 msgid "Crown-Indigenous Relations" msgstr "Relations Couronne-Autochtones" -#: src/components/Sankey/index.tsx:254 +#: src/components/Sankey/index.tsx:377 msgid "CSIS" msgstr "SCRS" -#: src/app/[lang]/(main)/tax-visualizer/page.tsx:53 +#: src/app/[lang]/(main)/tax-visualizer/page.tsx:59 msgid "Currently supports Ontario only. More provinces coming soon." msgstr "" -#: src/components/Sankey/index.tsx:727 +#: src/components/Sankey/index.tsx:850 msgid "Customs Duties" msgstr "Droits de douane" @@ -457,19 +453,19 @@ msgstr "Données mises à jour le 20 mars 2025" msgid "Data updated March 21, 2025" msgstr "Données mises à jour le 21 mars 2025" -#: src/components/Sankey/index.tsx:556 +#: src/components/Sankey/index.tsx:679 msgid "Defence" msgstr "Défense" -#: src/components/Sankey/index.tsx:579 +#: src/components/Sankey/index.tsx:702 msgid "Defence Operations + Internal Services" msgstr "Opérations de défense + Services internes" -#: src/components/Sankey/index.tsx:563 +#: src/components/Sankey/index.tsx:686 msgid "Defence Procurement" msgstr "Approvisionnement de la défense" -#: src/components/Sankey/index.tsx:571 +#: src/components/Sankey/index.tsx:694 msgid "Defence Team" msgstr "Équipe de la défense" @@ -497,7 +493,7 @@ msgstr "Ministères + Organismes" msgid "Despite these increases, significant challenges remain in areas such as housing, healthcare access, and infrastructure in remote Indigenous communities." msgstr "Malgré ces augmentations, des défis importants subsistent dans des domaines tels que le logement, l'accès aux soins de santé et l'infrastructure dans les communautés autochtones éloignées." -#: src/components/Sankey/index.tsx:672 +#: src/components/Sankey/index.tsx:795 msgid "Development, Peace + Security Programming" msgstr "Programmation du développement, de la paix + de la sécurité" @@ -509,7 +505,7 @@ msgstr "Programmation du développement, de la paix et de la sécurité : 5,37 G msgid "Direct spending refers to money allocated to government programs, employee salaries, and administrative expenses. Indirect spending includes federal transfers to individuals and provinces." msgstr "Les dépenses directes font référence à l'argent alloué aux programmes gouvernementaux, aux salaires des employés et aux dépenses administratives. Les dépenses indirectes comprennent les transferts fédéraux aux particuliers et aux provinces." -#: src/components/Sankey/index.tsx:266 +#: src/components/Sankey/index.tsx:389 msgid "Disaster Relief" msgstr "Secours aux sinistrés" @@ -517,38 +513,42 @@ msgstr "Secours aux sinistrés" msgid "DND's spending grew less than overall spending, meaning its share of the federal budget decreased. In 2024, the department accounted for 6.7% of all federal spending, 0.6 percentage points lower than in 1995." msgstr "Les dépenses du MDN ont augmenté moins que les dépenses globales, ce qui signifie que sa part du budget fédéral a diminué. En 2024, le ministère représentait 6,7 % de toutes les dépenses fédérales, soit 0,6 point de pourcentage de moins qu'en 1995." -#: src/components/Sankey/index.tsx:114 +#: src/components/Sankey/index.tsx:237 msgid "Economic Development in Atlantic Canada" msgstr "Développement économique au Canada atlantique" -#: src/components/Sankey/index.tsx:126 +#: src/components/Sankey/index.tsx:249 msgid "Economic Development in Northern Ontario" msgstr "Développement économique dans le Nord de l'Ontario" -#: src/components/Sankey/index.tsx:130 +#: src/components/Sankey/index.tsx:253 msgid "Economic Development in Quebec" msgstr "Développement économique au Québec" -#: src/components/Sankey/index.tsx:110 +#: src/components/Sankey/index.tsx:233 msgid "Economic Development in Southern Ontario" msgstr "Développement économique dans le Sud de l'Ontario" -#: src/components/Sankey/index.tsx:118 +#: src/components/Sankey/index.tsx:241 msgid "Economic Development in the Pacific Region" msgstr "Développement économique dans la région du Pacifique" -#: src/components/Sankey/index.tsx:83 +#: src/components/Sankey/index.tsx:206 msgid "Economy + Infrastructure" msgstr "Économie + Infrastructure" -#: src/components/Sankey/index.tsx:21 +#: src/components/Sankey/index.tsx:144 msgid "Economy and Standard of Living" msgstr "Économie et niveau de vie" -#: src/app/[lang]/(main)/tax-visualizer/page.tsx:86 +#: src/app/[lang]/(main)/tax-visualizer/page.tsx:92 msgid "Effective Rate" msgstr "" +#: src/app/[lang]/(main)/tax-visualizer/page.tsx:94 +msgid "Effective tax rate" +msgstr "" + #: src/components/MainLayout/Footer.tsx:61 msgid "Email address" msgstr "Adresse courriel" @@ -557,11 +557,11 @@ msgstr "Adresse courriel" msgid "Email us at <0>hi@canadaspends.com or connect with us on X <1>@canada_spends and we'll get back to you as soon as we can." msgstr "Envoyez-nous un courriel à <0>hi@canadaspends.com ou connectez-vous avec nous sur X <1>@canada_spends et nous vous répondrons dès que possible." -#: src/components/Sankey/index.tsx:619 +#: src/components/Sankey/index.tsx:742 msgid "Emergency Management Activities On-Reserve" msgstr "Activités de gestion des urgences dans les réserves" -#: src/components/Sankey/index.tsx:55 +#: src/components/Sankey/index.tsx:178 msgid "Employment + Training" msgstr "Emploi + Formation" @@ -573,15 +573,15 @@ msgstr "Emploi et Développement social Canada" msgid "Employment and Social Development Canada | Canada Spends" msgstr "Emploi et Développement social Canada | Canada Spends" -#: src/components/Sankey/index.tsx:230 +#: src/components/Sankey/index.tsx:353 msgid "Employment Insurance" msgstr "Assurance-emploi" -#: src/components/Sankey/index.tsx:762 +#: src/components/Sankey/index.tsx:885 msgid "Employment Insurance Premiums" msgstr "Cotisations d'assurance-emploi" -#: src/components/Sankey/index.tsx:710 +#: src/components/Sankey/index.tsx:833 msgid "Energy Taxes" msgstr "Taxes sur l'énergie" @@ -589,15 +589,15 @@ msgstr "Taxes sur l'énergie" msgid "Enter your email" msgstr "Entrez votre courriel" -#: src/app/[lang]/(main)/tax-visualizer/page.tsx:194 +#: src/app/[lang]/(main)/tax-visualizer/page.tsx:201 msgid "Enter your income to see a personalized breakdown of how much you contribute to different government services and programs." msgstr "" -#: src/components/Sankey/index.tsx:165 +#: src/components/Sankey/index.tsx:288 msgid "Environment and Climate Change" msgstr "Environnement et Changement climatique" -#: src/components/Sankey/index.tsx:480 +#: src/components/Sankey/index.tsx:603 msgid "Equalization Payments to Provinces" msgstr "Paiements de péréquation aux provinces" @@ -629,6 +629,18 @@ msgstr "La part des dépenses fédérales d'EDSC en 2024 était inférieure à c msgid "Established in 2005, ESDC is a federal department responsible for supporting Canadians through social programs and workforce development. It administers key programs such as Employment Insurance (EI), the Canada Pension Plan (CPP), Old Age Security (OAS), and skills training initiatives. ESDC also oversees Service Canada, which delivers government services directly to the public." msgstr "Établi en 2005, EDSC est un ministère fédéral responsable du soutien aux Canadiens par le biais de programmes sociaux et de développement de la main-d'œuvre. Il administre des programmes clés tels que l'assurance-emploi (AE), le Régime de pensions du Canada (RPC), la Sécurité de la vieillesse (SV) et des initiatives de formation professionnelle. EDSC supervise également Service Canada, qui fournit des services gouvernementaux directement au public." +#: src/app/[lang]/(main)/tax-visualizer/page.tsx:89 +msgid "Estimated combined tax" +msgstr "" + +#: src/app/[lang]/(main)/tax-visualizer/page.tsx:79 +msgid "Estimated income tax paid to federal government" +msgstr "" + +#: src/app/[lang]/(main)/tax-visualizer/page.tsx:84 +msgid "Estimated income tax paid to provincial government" +msgstr "" + #: src/app/[lang]/(main)/[jurisdiction]/page.tsx:190 msgid "Estimated provincial public service" msgstr "" @@ -637,19 +649,19 @@ msgstr "" msgid "Every year, hundreds of billions of dollars move through the Government of Canada's budget. This data is technically available but the information is difficult to understand and spread across PDFs and databases that most Canadians don't know about." msgstr "Chaque année, des centaines de milliards de dollars transitent par le budget du gouvernement du Canada. Ces données sont techniquement disponibles, mais l'information est difficile à comprendre et dispersée dans des PDF et des bases de données que la plupart des Canadiens ne connaissent pas." -#: src/components/Sankey/index.tsx:734 +#: src/components/Sankey/index.tsx:857 msgid "Excise Duties" msgstr "Droits d'accise" -#: src/components/Sankey/index.tsx:717 +#: src/components/Sankey/index.tsx:840 msgid "Excise Tax - Diesel Fuel" msgstr "Taxe d'accise - Carburant diesel" -#: src/components/Sankey/index.tsx:721 +#: src/components/Sankey/index.tsx:844 msgid "Excise Tax — Aviation Gasoline and Jet Fuel" msgstr "Taxe d'accise — Essence d'aviation et carburéacteur" -#: src/components/Sankey/index.tsx:713 +#: src/components/Sankey/index.tsx:836 msgid "Excise Tax — Gasoline" msgstr "Taxe d'accise — Essence" @@ -819,7 +831,7 @@ msgstr "Les dépenses fédérales consacrées aux priorités autochtones peuvent msgid "Federal spending on public safety fluctuates based on evolving security threats, emergency events, and changes in government policy. Since 2005 shortly after it was established, Public Safety Canada's expenditures have increased by 69.6%, reflecting heightened investments in counterterrorism, cyber defence, and disaster response capabilities. The department's share of the federal budget has remained relatively flat from 2.6% in 2005 to 2.7% in 2024." msgstr "Les dépenses fédérales en matière de sécurité publique fluctuent en fonction de l'évolution des menaces pour la sécurité, des événements d'urgence et des changements dans la politique gouvernementale. Depuis 2005, peu après sa création, les dépenses de Sécurité publique Canada ont augmenté de 69,6 %, reflétant des investissements accrus dans les capacités de lutte contre le terrorisme, de cyberdéfense et d'intervention en cas de catastrophe. La part du ministère dans le budget fédéral est restée relativement stable, passant de 2,6 % en 2005 à 2,7 % en 2024." -#: src/app/[lang]/(main)/tax-visualizer/page.tsx:71 +#: src/app/[lang]/(main)/tax-visualizer/page.tsx:77 msgid "Federal Tax" msgstr "" @@ -838,15 +850,15 @@ msgstr "" msgid "Financial Year {0} {1} Government Revenue and Spending" msgstr "" -#: src/components/Sankey/index.tsx:615 +#: src/components/Sankey/index.tsx:738 msgid "First Nations and Inuit Health Infrastructure Support" msgstr "Soutien à l'infrastructure de santé des Premières Nations et des Inuits" -#: src/components/Sankey/index.tsx:627 +#: src/components/Sankey/index.tsx:750 msgid "First Nations and Inuit Primary Health Care" msgstr "Soins de santé primaires des Premières Nations et des Inuits" -#: src/components/Sankey/index.tsx:607 +#: src/components/Sankey/index.tsx:730 msgid "First Nations Elementary and Secondary Educational Advancement" msgstr "Avancement de l'éducation primaire et secondaire des Premières Nations" @@ -854,15 +866,15 @@ msgstr "Avancement de l'éducation primaire et secondaire des Premières Nations msgid "Fiscal arrangements" msgstr "Arrangements fiscaux" -#: src/components/Sankey/index.tsx:136 +#: src/components/Sankey/index.tsx:259 msgid "Fisheries" msgstr "Pêches" -#: src/components/Sankey/index.tsx:143 +#: src/components/Sankey/index.tsx:266 msgid "Fisheries + Aquatic Ecosystems" msgstr "Pêches + Écosystèmes aquatiques" -#: src/components/Sankey/index.tsx:38 +#: src/components/Sankey/index.tsx:161 msgid "Food Safety" msgstr "Sécurité alimentaire" @@ -870,15 +882,19 @@ msgstr "Sécurité alimentaire" msgid "For example, during the COVID-19 pandemic, federal support programs led to a temporary surge in spending. ESDC expenditures increased from $63.3 billion in 2019 to $169.2 billion in 2021 before stabilizing in recent years." msgstr "Par exemple, pendant la pandémie de COVID-19, les programmes de soutien fédéraux ont entraîné une augmentation temporaire des dépenses. Les dépenses d'EDSC sont passées de 63,3 milliards de dollars en 2019 à 169,2 milliards de dollars en 2021 avant de se stabiliser ces dernières années." +#: src/app/[lang]/(main)/tax-visualizer/page.tsx:239 +msgid "For further breakdowns of spending, see <0>Federal and <1>Provincial spending pages." +msgstr "" + #: src/app/[lang]/(main)/about/page.tsx:68 msgid "Frequently Asked Questions" msgstr "Questions fréquemment posées" -#: src/components/Sankey/index.tsx:335 +#: src/components/Sankey/index.tsx:458 msgid "Functioning of Government" msgstr "Fonctionnement du gouvernement" -#: src/components/Sankey/index.tsx:575 +#: src/components/Sankey/index.tsx:698 msgid "Future Force Design" msgstr "Conception des forces futures" @@ -894,7 +910,7 @@ msgstr "AMC représentait 3,7 % de toutes les dépenses fédérales pour l'exerc msgid "GAC's expenditures are divided across five primary categories:" msgstr "Les dépenses d'AMC sont réparties en cinq catégories principales :" -#: src/components/Sankey/index.tsx:63 +#: src/components/Sankey/index.tsx:186 msgid "Gender Equality" msgstr "Égalité des genres" @@ -942,11 +958,11 @@ msgstr "Affaires mondiales Canada a dépensé 19,2 milliards de dollars au cours msgid "Global Affairs Canada, Spending by Entity, FY 2024" msgstr "Affaires mondiales Canada, Dépenses par entité, exercice 2024" -#: src/components/Sankey/index.tsx:706 +#: src/components/Sankey/index.tsx:829 msgid "Goods and Services Tax" msgstr "Taxe sur les produits et services" -#: src/components/Sankey/index.tsx:647 +#: src/components/Sankey/index.tsx:770 msgid "Gottfriedson Band Class Settlement" msgstr "Règlement du recours collectif de la bande Gottfriedson" @@ -954,7 +970,7 @@ msgstr "Règlement du recours collectif de la bande Gottfriedson" msgid "Government Departments explained" msgstr "Explication des ministères gouvernementaux" -#: src/components/Sankey/index.tsx:329 +#: src/components/Sankey/index.tsx:452 msgid "Government IT Operations" msgstr "Opérations informatiques gouvernementales" @@ -964,6 +980,10 @@ msgstr "Opérations informatiques gouvernementales" msgid "Government Spending" msgstr "Dépenses gouvernementales" +#: src/app/[lang]/(main)/tax-visualizer/page.tsx:236 +msgid "Government spending is based on 2023-2024 fiscal spending. Attempts have been made to merge similar categories across federal and provincial spending. Transfer to Provinces are assumed to go entirely to Ontario for simplicity." +msgstr "" + #. js-lingui-explicit-id #: src/app/[lang]/(main)/page.tsx:77 msgid "facts-1" @@ -981,7 +1001,7 @@ msgstr "Effectif gouvernemental" msgid "Government Workforce & Spending Data | See the Breakdown" msgstr "Données sur l'effectif et les dépenses gouvernementales | Voir la répartition" -#: src/components/Sankey/index.tsx:599 +#: src/components/Sankey/index.tsx:722 msgid "Grants to Support the New Fiscal Relationship with First Nations" msgstr "Subventions pour soutenir la nouvelle relation financière avec les Premières Nations" @@ -993,7 +1013,7 @@ msgstr "Vous avez des questions ou des commentaires? Envoyez-nous un courriel à msgid "Headcount" msgstr "Effectif" -#: src/components/Sankey/index.tsx:27 +#: src/components/Sankey/index.tsx:150 msgid "Health" msgstr "Santé" @@ -1022,15 +1042,15 @@ msgstr "Santé Canada est le ministère fédéral responsable de la protection e msgid "Health Canada spent $13.7 billion in fiscal year (FY) 2024. This was 2.7% of the $513.9 billion in overall federal spending. The department ranked tenth among federal departments in total spending." msgstr "Santé Canada a dépensé 13,7 milliards de dollars au cours de l'exercice 2024. Cela représentait 2,7 % des 513,9 milliards de dollars de dépenses fédérales totales. Le ministère s'est classé dixième parmi les ministères fédéraux en termes de dépenses totales." -#: src/components/Sankey/index.tsx:34 +#: src/components/Sankey/index.tsx:157 msgid "Health Care Systems + Protection" msgstr "Systèmes de soins de santé + Protection" -#: src/components/Sankey/index.tsx:30 +#: src/components/Sankey/index.tsx:153 msgid "Health Research" msgstr "Recherche en santé" -#: src/components/Sankey/index.tsx:366 +#: src/components/Sankey/index.tsx:489 msgid "Health Transfer to Provinces" msgstr "Transfert en matière de santé aux provinces" @@ -1054,7 +1074,7 @@ msgstr "LICC administre la Stratégie nationale sur le logement, qui finance la msgid "HICC spent $14.5 billion in fiscal year (FY) 2024. This was 2.8% of the $513.9 billion in overall federal spending. The department ranked eighth among federal departments in total spending." msgstr "LICC a dépensé 14,5 milliards de dollars au cours de l'exercice 2024. Cela représentait 2,8 % des 513,9 milliards de dollars de dépenses fédérales totales. Le ministère s'est classé huitième parmi les ministères fédéraux en termes de dépenses totales." -#: src/components/Sankey/index.tsx:59 +#: src/components/Sankey/index.tsx:182 msgid "Housing Assistance" msgstr "Aide au logement" @@ -1138,7 +1158,7 @@ msgstr "Comment ACC a-t-il dépensé son budget pour l'exercice 2024?" msgid "How has Public Safety Canada's spending changed?" msgstr "Comment les dépenses de Sécurité publique Canada ont-elles évolué?" -#: src/components/Sankey/index.tsx:288 +#: src/components/Sankey/index.tsx:411 msgid "Immigration + Border Security" msgstr "Immigration + Sécurité frontalière" @@ -1222,19 +1242,11 @@ msgstr "Au cours de l'exercice 2024, Transports Canada représentait 1 % des dé msgid "In FY 2024, VAC reported total expenditures of $6.07 billion across two entities:" msgstr "Au cours de l'exercice 2024, ACC a déclaré des dépenses totales de 6,07 milliards de dollars réparties entre deux entités :" -#: src/app/[lang]/(main)/tax-visualizer/page.tsx:73 -msgid "Income tax paid to federal government" -msgstr "" - -#: src/app/[lang]/(main)/tax-visualizer/page.tsx:78 -msgid "Income tax paid to provincial government" -msgstr "" - #: src/app/[lang]/(main)/spending/TenureChart.tsx:8 msgid "Indeterminate" msgstr "Indéterminé" -#: src/components/Sankey/index.tsx:593 +#: src/components/Sankey/index.tsx:716 msgid "Indigenous Priorities" msgstr "Priorités autochtones" @@ -1250,11 +1262,11 @@ msgstr "Services aux Autochtones Canada (SAC) et Relations Couronne-Autochtones msgid "Indigenous Services Canada + Crown-Indigenous Relations and Northern Affairs Canada" msgstr "Services aux Autochtones Canada + Relations Couronne-Autochtones et Affaires du Nord Canada" -#: src/components/Sankey/index.tsx:596 +#: src/components/Sankey/index.tsx:719 msgid "Indigenous Well-Being + Self Determination" msgstr "Bien-être des Autochtones + Autodétermination" -#: src/components/Sankey/index.tsx:746 +#: src/components/Sankey/index.tsx:869 msgid "Individual Income Taxes" msgstr "Impôts sur le revenu des particuliers" @@ -1274,11 +1286,11 @@ msgstr "Impôts sur le revenu des particuliers" msgid "Information" msgstr "Information" -#: src/components/Sankey/index.tsx:211 +#: src/components/Sankey/index.tsx:334 msgid "Infrastructure Investments" msgstr "Investissements en infrastructure" -#: src/components/Sankey/index.tsx:86 +#: src/components/Sankey/index.tsx:209 msgid "Innovation + Research" msgstr "Innovation + Recherche" @@ -1295,7 +1307,7 @@ msgstr "Innovation, Sciences et Industrie Canada (ISIC) est dirigé par le minis msgid "Innovation, Science and Industry Canada | Canada Spends" msgstr "Innovation, Sciences et Industrie Canada | Canada Spends" -#: src/components/Sankey/index.tsx:189 +#: src/components/Sankey/index.tsx:312 msgid "Innovative and Sustainable Natural Resources Development" msgstr "Développement innovant et durable des ressources naturelles" @@ -1303,7 +1315,7 @@ msgstr "Développement innovant et durable des ressources naturelles" msgid "Interest on Debt" msgstr "" -#: src/components/Sankey/index.tsx:303 +#: src/components/Sankey/index.tsx:426 msgid "Interim Housing Assistance" msgstr "Aide temporaire au logement" @@ -1325,19 +1337,19 @@ msgstr "Revenus internes" msgid "International Advocacy and Diplomacy: $1B" msgstr "Plaidoyer international et diplomatie : 1 G$" -#: src/components/Sankey/index.tsx:669 +#: src/components/Sankey/index.tsx:792 msgid "International Affairs" msgstr "Affaires internationales" -#: src/components/Sankey/index.tsx:680 +#: src/components/Sankey/index.tsx:803 msgid "International Development Research Centre" msgstr "Centre de recherches pour le développement international" -#: src/components/Sankey/index.tsx:676 +#: src/components/Sankey/index.tsx:799 msgid "International Diplomacy" msgstr "Diplomatie internationale" -#: src/components/Sankey/index.tsx:89 +#: src/components/Sankey/index.tsx:212 msgid "Investment, Growth and Commercialization" msgstr "Investissement, croissance et commercialisation" @@ -1381,7 +1393,7 @@ msgstr "ISDE a dépensé 10,2 milliards de dollars au cours de l'exercice 2024. msgid "It doesn't have to be this way." msgstr "Ça ne doit pas être comme ça." -#: src/components/Sankey/index.tsx:282 +#: src/components/Sankey/index.tsx:405 msgid "Justice System" msgstr "Système de justice" @@ -1434,15 +1446,15 @@ msgstr "" msgid "Making Government Spending Clear | About Us | Canada Spends" msgstr "Rendre les dépenses gouvernementales claires | À propos de nous | Canada Spends" -#: src/components/Sankey/index.tsx:507 +#: src/components/Sankey/index.tsx:630 msgid "Manitoba EQP" msgstr "PÉ Manitoba" -#: src/components/Sankey/index.tsx:393 +#: src/components/Sankey/index.tsx:516 msgid "Manitoba HTP" msgstr "TCS Manitoba" -#: src/components/Sankey/index.tsx:450 +#: src/components/Sankey/index.tsx:573 msgid "Manitoba STP" msgstr "TPS Manitoba" @@ -1450,7 +1462,7 @@ msgstr "TPS Manitoba" msgid "Ministries + Agencies" msgstr "" -#: src/components/Sankey/index.tsx:791 +#: src/components/Sankey/index.tsx:914 msgid "Miscellaneous revenues" msgstr "Revenus divers" @@ -1493,23 +1505,23 @@ msgstr "Défense nationale, Dépenses par entité, exercice 2024" msgid "National Defence's share of federal spending in FY 2024 was lower than in FY 1995" msgstr "La part des dépenses fédérales de la Défense nationale en 2024 était inférieure à celle de 1995" -#: src/components/Sankey/index.tsx:180 +#: src/components/Sankey/index.tsx:303 msgid "National Parks" msgstr "Parcs nationaux" -#: src/components/Sankey/index.tsx:186 +#: src/components/Sankey/index.tsx:309 msgid "Natural Resources Management" msgstr "Gestion des ressources naturelles" -#: src/components/Sankey/index.tsx:201 +#: src/components/Sankey/index.tsx:324 msgid "Natural Resources Science + Risk Mitigation" msgstr "Science des ressources naturelles + Atténuation des risques" -#: src/components/Sankey/index.tsx:176 +#: src/components/Sankey/index.tsx:299 msgid "Nature Conservation" msgstr "Conservation de la nature" -#: src/components/Sankey/index.tsx:356 +#: src/components/Sankey/index.tsx:479 msgid "Net actuarial losses" msgstr "Pertes actuarielles nettes" @@ -1517,35 +1529,35 @@ msgstr "Pertes actuarielles nettes" msgid "Net Debt" msgstr "" -#: src/components/Sankey/index.tsx:779 +#: src/components/Sankey/index.tsx:902 msgid "Net Foreign Exchange Revenue" msgstr "Revenus nets de change" -#: src/components/Sankey/index.tsx:550 +#: src/components/Sankey/index.tsx:673 msgid "Net Interest on Debt" msgstr "Intérêts nets sur la dette" -#: src/components/Sankey/index.tsx:495 +#: src/components/Sankey/index.tsx:618 msgid "New Brunswick EQP" msgstr "PÉ Nouveau-Brunswick" -#: src/components/Sankey/index.tsx:381 +#: src/components/Sankey/index.tsx:504 msgid "New Brunswick HTP" msgstr "TCS Nouveau-Brunswick" -#: src/components/Sankey/index.tsx:438 +#: src/components/Sankey/index.tsx:561 msgid "New Brunswick STP" msgstr "TPS Nouveau-Brunswick" -#: src/components/Sankey/index.tsx:483 +#: src/components/Sankey/index.tsx:606 msgid "Newfoundland and Labrador EQP" msgstr "PÉ Terre-Neuve-et-Labrador" -#: src/components/Sankey/index.tsx:369 +#: src/components/Sankey/index.tsx:492 msgid "Newfoundland and Labrador HTP" msgstr "TCS Terre-Neuve-et-Labrador" -#: src/components/Sankey/index.tsx:426 +#: src/components/Sankey/index.tsx:549 msgid "Newfoundland and Labrador STP" msgstr "TPS Terre-Neuve-et-Labrador" @@ -1565,51 +1577,51 @@ msgstr "Non, nous ne copions pas le modèle DOGE des États-Unis." msgid "Non-Partisan" msgstr "Non partisan" -#: src/components/Sankey/index.tsx:754 +#: src/components/Sankey/index.tsx:877 msgid "Non-resident Income Taxes" msgstr "Impôts sur le revenu des non-résidents" -#: src/components/Sankey/index.tsx:527 +#: src/components/Sankey/index.tsx:650 msgid "Northwest Territories EQP" msgstr "PÉ Territoires du Nord-Ouest" -#: src/components/Sankey/index.tsx:413 +#: src/components/Sankey/index.tsx:536 msgid "Northwest Territories HTP" msgstr "TCS Territoires du Nord-Ouest" -#: src/components/Sankey/index.tsx:470 +#: src/components/Sankey/index.tsx:593 msgid "Northwest Territories STP" msgstr "TPS Territoires du Nord-Ouest" -#: src/components/Sankey/index.tsx:491 +#: src/components/Sankey/index.tsx:614 msgid "Nova Scotia EQP" msgstr "PÉ Nouvelle-Écosse" -#: src/components/Sankey/index.tsx:377 +#: src/components/Sankey/index.tsx:500 msgid "Nova Scotia HTP" msgstr "TCS Nouvelle-Écosse" -#: src/components/Sankey/index.tsx:434 +#: src/components/Sankey/index.tsx:557 msgid "Nova Scotia STP" msgstr "TPS Nouvelle-Écosse" -#: src/components/Sankey/index.tsx:197 +#: src/components/Sankey/index.tsx:320 msgid "Nuclear Labs + Decommissioning" msgstr "Laboratoires nucléaires + Déclassement" -#: src/components/Sankey/index.tsx:531 +#: src/components/Sankey/index.tsx:654 msgid "Nunavut EQP" msgstr "PÉ Nunavut" -#: src/components/Sankey/index.tsx:417 +#: src/components/Sankey/index.tsx:540 msgid "Nunavut HTP" msgstr "TCS Nunavut" -#: src/components/Sankey/index.tsx:474 +#: src/components/Sankey/index.tsx:597 msgid "Nunavut STP" msgstr "TPS Nunavut" -#: src/components/Sankey/index.tsx:547 +#: src/components/Sankey/index.tsx:670 msgid "Obligations" msgstr "Obligations" @@ -1671,41 +1683,41 @@ msgstr "des dépenses fédérales ont été effectuées par Affaires mondiales C msgid "of federal spending was by the Public Safety Canada" msgstr "des dépenses fédérales ont été effectuées par Sécurité publique Canada" -#: src/components/Sankey/index.tsx:274 +#: src/components/Sankey/index.tsx:397 msgid "Office of the Chief Electoral Officer" msgstr "Bureau du directeur général des élections" -#: src/components/Sankey/index.tsx:350 +#: src/components/Sankey/index.tsx:473 msgid "Office of the Secretary to the Governor General" msgstr "Bureau du secrétaire du gouverneur général" -#: src/components/Sankey/index.tsx:67 +#: src/components/Sankey/index.tsx:190 msgid "Official Languages + Culture" msgstr "Langues officielles + Culture" -#: src/components/Sankey/index.tsx:611 +#: src/components/Sankey/index.tsx:734 msgid "On-reserve Income Support in Yukon Territory" msgstr "Soutien du revenu dans les réserves du Yukon" #: src/components/MainLayout/index.tsx:98 #: src/components/MainLayout/index.tsx:169 -#: src/app/[lang]/(main)/tax-visualizer/page.tsx:50 +#: src/app/[lang]/(main)/tax-visualizer/page.tsx:56 msgid "Ontario" msgstr "" -#: src/components/Sankey/index.tsx:503 +#: src/components/Sankey/index.tsx:626 msgid "Ontario EQP" msgstr "PÉ Ontario" -#: src/components/Sankey/index.tsx:389 +#: src/components/Sankey/index.tsx:512 msgid "Ontario HTP" msgstr "TCS Ontario" -#: src/components/Sankey/index.tsx:446 +#: src/components/Sankey/index.tsx:569 msgid "Ontario STP" msgstr "TPS Ontario" -#: src/components/Sankey/index.tsx:319 +#: src/components/Sankey/index.tsx:442 #: src/app/[lang]/(main)/spending/department-of-finance/MiniSankey.tsx:36 msgid "Other" msgstr "Autre" @@ -1715,19 +1727,19 @@ msgstr "Autre" msgid "Other {0} Government Ministries" msgstr "" -#: src/components/Sankey/index.tsx:101 +#: src/components/Sankey/index.tsx:224 msgid "Other Boards + Councils" msgstr "Autres conseils + Commissions" -#: src/components/Sankey/index.tsx:587 +#: src/components/Sankey/index.tsx:710 msgid "Other Defence" msgstr "Autre défense" -#: src/components/Sankey/index.tsx:168 +#: src/components/Sankey/index.tsx:291 msgid "Other Environment and Climate Change Programs" msgstr "Autres programmes environnementaux et de changement climatique" -#: src/components/Sankey/index.tsx:731 +#: src/components/Sankey/index.tsx:854 msgid "Other Excise Taxes and Duties" msgstr "Autres taxes et droits d'accise" @@ -1735,43 +1747,43 @@ msgstr "Autres taxes et droits d'accise" msgid "Other expenditures" msgstr "Autres dépenses" -#: src/components/Sankey/index.tsx:147 +#: src/components/Sankey/index.tsx:270 msgid "Other Fisheries Expenses" msgstr "Autres dépenses liées aux pêches" -#: src/components/Sankey/index.tsx:661 +#: src/components/Sankey/index.tsx:784 msgid "Other Grants and Contributions to Support Crown-Indigenous Relations" msgstr "Autres subventions et contributions pour soutenir les relations Couronne-Autochtones" -#: src/components/Sankey/index.tsx:295 +#: src/components/Sankey/index.tsx:418 msgid "Other Immigration Services" msgstr "Autres services d'immigration" -#: src/components/Sankey/index.tsx:688 +#: src/components/Sankey/index.tsx:811 msgid "Other International Affairs Activities" msgstr "Autres activités des affaires internationales" -#: src/components/Sankey/index.tsx:541 +#: src/components/Sankey/index.tsx:664 msgid "Other Major Transfers" msgstr "Autres transferts majeurs" -#: src/components/Sankey/index.tsx:205 +#: src/components/Sankey/index.tsx:328 msgid "Other Natural Resources Management Support" msgstr "Autre soutien à la gestion des ressources naturelles" -#: src/components/Sankey/index.tsx:772 +#: src/components/Sankey/index.tsx:895 msgid "Other Non-tax Revenue" msgstr "Autres revenus non fiscaux" -#: src/components/Sankey/index.tsx:278 +#: src/components/Sankey/index.tsx:401 msgid "Other Public Safety Expenses" msgstr "Autres dépenses de sécurité publique" -#: src/components/Sankey/index.tsx:325 +#: src/components/Sankey/index.tsx:448 msgid "Other Public Services + Procurement" msgstr "Autres services publics + Approvisionnement" -#: src/components/Sankey/index.tsx:655 +#: src/components/Sankey/index.tsx:778 msgid "Other Settlement Agreements" msgstr "Autres accords de règlement" @@ -1794,11 +1806,11 @@ msgstr "Autres subventions et paiements" msgid "Other Subsidies and Payments" msgstr "Autres subventions et paiements" -#: src/components/Sankey/index.tsx:631 +#: src/components/Sankey/index.tsx:754 msgid "Other Support for Indigenous Well-Being" msgstr "Autre soutien au bien-être des Autochtones" -#: src/components/Sankey/index.tsx:703 +#: src/components/Sankey/index.tsx:826 msgid "Other Taxes and Duties" msgstr "Autres taxes et droits" @@ -1806,15 +1818,15 @@ msgstr "Autres taxes et droits" msgid "Our government is going to have to make hard choices about our nation's spending to ensure we can invest in creating a competitive, resilient, and independent nation. We care about giving Canadians the facts about spending so they can engage in this conversation with elected officials." msgstr "Notre gouvernement devra faire des choix difficiles concernant les dépenses de notre nation pour assurer que nous puissions investir dans la création d'une nation compétitive, résiliente et indépendante. Nous tenons à donner aux Canadiens les faits sur les dépenses afin qu'ils puissent participer à cette conversation avec les élus." -#: src/components/Sankey/index.tsx:643 +#: src/components/Sankey/index.tsx:766 msgid "Out of Court Settlement" msgstr "Règlement hors cour" -#: src/components/Sankey/index.tsx:338 +#: src/components/Sankey/index.tsx:461 msgid "Parliament" msgstr "Parlement" -#: src/components/Sankey/index.tsx:759 +#: src/components/Sankey/index.tsx:882 msgid "Payroll Taxes" msgstr "Charges sociales" @@ -1862,23 +1874,23 @@ msgstr "Pourcentage du budget fédéral consacré aux priorités autochtones, ex msgid "Personnel" msgstr "Personnel" -#: src/components/Sankey/index.tsx:623 +#: src/components/Sankey/index.tsx:746 msgid "Prevention and Protection Services for Children, Youth, Families and Communities" msgstr "Services de prévention et de protection pour les enfants, les jeunes, les familles et les communautés" -#: src/components/Sankey/index.tsx:487 +#: src/components/Sankey/index.tsx:610 msgid "Prince Edward Island EQP" msgstr "PÉ Île-du-Prince-Édouard" -#: src/components/Sankey/index.tsx:373 +#: src/components/Sankey/index.tsx:496 msgid "Prince Edward Island HTP" msgstr "TCS Île-du-Prince-Édouard" -#: src/components/Sankey/index.tsx:430 +#: src/components/Sankey/index.tsx:553 msgid "Prince Edward Island STP" msgstr "TPS Île-du-Prince-Édouard" -#: src/components/Sankey/index.tsx:342 +#: src/components/Sankey/index.tsx:465 msgid "Privy Council Office" msgstr "Bureau du Conseil privé" @@ -1901,7 +1913,7 @@ msgstr "Services professionnels + spéciaux" msgid "Professional and Special Services" msgstr "Services professionnels et spéciaux" -#: src/app/[lang]/(main)/tax-visualizer/page.tsx:42 +#: src/app/[lang]/(main)/tax-visualizer/page.tsx:48 msgid "Province/Territory" msgstr "" @@ -1909,7 +1921,7 @@ msgstr "" msgid "Provincial organizations" msgstr "" -#: src/app/[lang]/(main)/tax-visualizer/page.tsx:76 +#: src/app/[lang]/(main)/tax-visualizer/page.tsx:82 msgid "Provincial Tax" msgstr "" @@ -1943,11 +1955,11 @@ msgstr "Frais de la dette publique" msgid "Public Debt Charges" msgstr "Frais de la dette publique" -#: src/components/Sankey/index.tsx:42 +#: src/components/Sankey/index.tsx:165 msgid "Public Health + Disease Prevention" msgstr "Santé publique + Prévention des maladies" -#: src/components/Sankey/index.tsx:251 +#: src/components/Sankey/index.tsx:374 msgid "Public Safety" msgstr "Sécurité publique" @@ -1985,7 +1997,7 @@ msgstr "Services publics et Approvisionnement Canada (SPAC) est dirigé par le m msgid "Public Services and Procurement Canada | Canada Spends" msgstr "Services publics et Approvisionnement Canada | Canada Spends" -#: src/components/Sankey/index.tsx:322 +#: src/components/Sankey/index.tsx:445 msgid "Public Works + Government Services" msgstr "Travaux publics + Services gouvernementaux" @@ -1993,27 +2005,27 @@ msgstr "Travaux publics + Services gouvernementaux" msgid "Quebec abatement" msgstr "Abattement du Québec" -#: src/components/Sankey/index.tsx:499 +#: src/components/Sankey/index.tsx:622 msgid "Quebec EQP" msgstr "PÉ Québec" -#: src/components/Sankey/index.tsx:385 +#: src/components/Sankey/index.tsx:508 msgid "Quebec HTP" msgstr "TCS Québec" -#: src/components/Sankey/index.tsx:442 +#: src/components/Sankey/index.tsx:565 msgid "Quebec STP" msgstr "TPS Québec" -#: src/components/Sankey/index.tsx:537 +#: src/components/Sankey/index.tsx:660 msgid "Quebec Tax Offset" msgstr "Compensation fiscale du Québec" -#: src/components/Sankey/index.tsx:262 +#: src/components/Sankey/index.tsx:385 msgid "RCMP" msgstr "GRC" -#: src/components/Sankey/index.tsx:559 +#: src/components/Sankey/index.tsx:682 msgid "Ready Forces" msgstr "Forces prêtes" @@ -2052,43 +2064,43 @@ msgstr "Réparation + Entretien" msgid "Repair and Maintenance" msgstr "Réparation et entretien" -#: src/components/Sankey/index.tsx:93 +#: src/components/Sankey/index.tsx:216 msgid "Research" msgstr "Recherche" -#: src/components/Sankey/index.tsx:226 +#: src/components/Sankey/index.tsx:349 msgid "Retirement Benefits" msgstr "Prestations de retraite" -#: src/components/Sankey/index.tsx:783 +#: src/components/Sankey/index.tsx:906 msgid "Return on Investments" msgstr "Rendement des investissements" -#: src/components/Sankey/index.tsx:700 +#: src/components/Sankey/index.tsx:823 msgid "Revenue" msgstr "Revenus" -#: src/components/Sankey/index.tsx:51 +#: src/components/Sankey/index.tsx:174 msgid "Revenue Canada" msgstr "Revenu Canada" -#: src/components/Sankey/index.tsx:248 +#: src/components/Sankey/index.tsx:371 msgid "Safety" msgstr "Sécurité" -#: src/components/Sankey/index.tsx:787 +#: src/components/Sankey/index.tsx:910 msgid "Sales of Government Goods + Services" msgstr "Ventes de biens et services gouvernementaux" -#: src/components/Sankey/index.tsx:511 +#: src/components/Sankey/index.tsx:634 msgid "Saskatchewan EQP" msgstr "PÉ Saskatchewan" -#: src/components/Sankey/index.tsx:397 +#: src/components/Sankey/index.tsx:520 msgid "Saskatchewan HTP" msgstr "TCS Saskatchewan" -#: src/components/Sankey/index.tsx:454 +#: src/components/Sankey/index.tsx:577 msgid "Saskatchewan STP" msgstr "TPS Saskatchewan" @@ -2100,7 +2112,7 @@ msgstr "Voyez comment le gouvernement du Canada dépense les dollars des contrib msgid "Service Canada: responsible for processing EI, CPP, and OAS benefits." msgstr "Service Canada : responsable du traitement des prestations d'AE, du RPC et de la SV." -#: src/components/Sankey/index.tsx:299 +#: src/components/Sankey/index.tsx:422 msgid "Settlement Assistance" msgstr "Aide à l'établissement" @@ -2124,11 +2136,11 @@ msgstr "De même, les dépenses de SPAC ont connu des fluctuations notables au c msgid "Similarly, Transport Canada's expenditures experienced fluctuations during this period, increasing from approximately $3.2 billion​ in 2019 (adjusted for inflation) to $5.1B in 2024." msgstr "De même, les dépenses de Transports Canada ont connu des fluctuations au cours de cette période, passant d'environ 3,2 milliards de dollars en 2019 (ajusté à l'inflation) à 5,1 milliards de dollars en 2024." -#: src/components/Sankey/index.tsx:223 +#: src/components/Sankey/index.tsx:346 msgid "Social Security" msgstr "Sécurité sociale" -#: src/components/Sankey/index.tsx:423 +#: src/components/Sankey/index.tsx:546 msgid "Social Transfer to Provinces" msgstr "Transfert social aux provinces" @@ -2146,11 +2158,11 @@ msgstr "Sources" msgid "Sources:" msgstr "Sources :" -#: src/components/Sankey/index.tsx:157 +#: src/components/Sankey/index.tsx:280 msgid "Space" msgstr "Espace" -#: src/components/Sankey/index.tsx:18 +#: src/components/Sankey/index.tsx:141 #: src/components/MainLayout/Footer.tsx:103 msgid "Spending" msgstr "Dépenses" @@ -2160,11 +2172,11 @@ msgstr "Dépenses" msgid "Spending Database" msgstr "" -#: src/components/Sankey/index.tsx:48 +#: src/components/Sankey/index.tsx:171 msgid "Standard of Living" msgstr "Niveau de vie" -#: src/components/Sankey/index.tsx:24 +#: src/components/Sankey/index.tsx:147 msgid "Standard of Living and Assistance to Address Inequalities" msgstr "Niveau de vie et aide pour réduire les inégalités" @@ -2172,7 +2184,7 @@ msgstr "Niveau de vie et aide pour réduire les inégalités" msgid "Start reading" msgstr "Commencer la lecture" -#: src/components/Sankey/index.tsx:97 +#: src/components/Sankey/index.tsx:220 msgid "Statistics Canada" msgstr "Statistique Canada" @@ -2196,29 +2208,28 @@ msgstr "Abonnez-vous à notre infolettre" msgid "Support for Canada's Presence Abroad: $1.23B" msgstr "Soutien à la présence du Canada à l'étranger : 1,23 G$" -#: src/components/Sankey/index.tsx:684 +#: src/components/Sankey/index.tsx:807 msgid "Support for Embassies + Canada's Presence Abroad" msgstr "Soutien aux ambassades + Présence du Canada à l'étranger" -#: src/components/Sankey/index.tsx:193 +#: src/components/Sankey/index.tsx:316 msgid "Support for Global Competition" msgstr "Soutien à la compétition mondiale" -#: src/components/Sankey/index.tsx:71 +#: src/components/Sankey/index.tsx:194 msgid "Support for Veterans" msgstr "Soutien aux anciens combattants" -#: src/components/Sankey/index.tsx:567 +#: src/components/Sankey/index.tsx:690 msgid "Sustainable Bases, IT Systems, Infrastructure" msgstr "Bases durables, systèmes TI, infrastructure" -#: src/app/[lang]/(main)/tax-visualizer/page.tsx:229 -msgid "Tax calculations are based on 2025 federal and provincial tax brackets. Amounts under $20 are grouped into \"Other\" for conciseness." +#: src/components/MainLayout/index.tsx:176 +msgid "Tax Calculator" msgstr "" #: src/components/MainLayout/index.tsx:107 -#: src/components/MainLayout/index.tsx:176 -msgid "Tax Calculator" +msgid "Tax Visualizer" msgstr "" #: src/app/[lang]/(main)/spending/TenureChart.tsx:10 @@ -2418,8 +2429,8 @@ msgstr "Ces ministres sont parmi les <0>membres du cabinet qui servent à la msgid "This ministry plays an important role in {0}'s government operations, delivering essential services and programs to residents across the province." msgstr "" -#: src/app/[lang]/(main)/tax-visualizer/page.tsx:223 -msgid "This visualization shows how your income tax contributions are allocated across different government programs and services based on current government spending patterns." +#: src/app/[lang]/(main)/tax-visualizer/page.tsx:230 +msgid "This visualization shows how your income tax contributions are allocated across different government programs and services based on current government spending patterns. Amounts under $20 are grouped into \"Other\" for conciseness." msgstr "" #: src/app/[lang]/(main)/spending/health-canada/page.tsx:59 @@ -2434,7 +2445,7 @@ msgstr "" msgid "Total full-time equivalents" msgstr "Équivalents temps plein totaux" -#: src/app/[lang]/(main)/tax-visualizer/page.tsx:81 +#: src/app/[lang]/(main)/tax-visualizer/page.tsx:87 msgid "Total Tax" msgstr "" @@ -2442,7 +2453,7 @@ msgstr "" msgid "Total Wages" msgstr "Salaires totaux" -#: src/components/Sankey/index.tsx:692 +#: src/components/Sankey/index.tsx:815 msgid "Trade and Investment" msgstr "Commerce et investissement" @@ -2466,7 +2477,7 @@ msgstr "Commerce et investissement : 380,3 M$" msgid "Transfer Payments" msgstr "Paiements de transfert" -#: src/components/Sankey/index.tsx:362 +#: src/components/Sankey/index.tsx:485 msgid "Transfers to Provinces" msgstr "Transferts aux provinces" @@ -2491,7 +2502,7 @@ msgstr "Transports Canada est dirigé par le ministre des Transports, qui est no msgid "Transport Canada spent $5.1 billion in fiscal year (FY) 2024. This was 1% of the $513.9 billion in overall federal spending. The department ranked fourteenth among federal departments in total spending." msgstr "Transports Canada a dépensé 5,1 milliards de dollars au cours de l'exercice 2024. Cela représentait 1 % des 513,9 milliards de dollars de dépenses fédérales totales. Le ministère s'est classé quatorzième parmi les ministères fédéraux en termes de dépenses totales." -#: src/components/Sankey/index.tsx:215 +#: src/components/Sankey/index.tsx:338 msgid "Transportation" msgstr "Transport" @@ -2514,7 +2525,7 @@ msgstr "Transport + Communication" msgid "Transportation and Communication" msgstr "Transport et Communication" -#: src/components/Sankey/index.tsx:346 +#: src/components/Sankey/index.tsx:469 #: src/app/[lang]/(main)/spending/page.tsx:123 msgid "Treasury Board" msgstr "Conseil du Trésor" @@ -2523,7 +2534,7 @@ msgstr "Conseil du Trésor" msgid "Type of Tenure" msgstr "Type d'emploi" -#: src/app/[lang]/(main)/tax-visualizer/page.tsx:220 +#: src/app/[lang]/(main)/tax-visualizer/page.tsx:227 msgid "Understanding Your Tax Contribution" msgstr "" @@ -2573,7 +2584,7 @@ msgstr "Anciens Combattants Canada | Canada Dépense" msgid "View this chart in full screen" msgstr "Voir ce graphique en plein écran" -#: src/components/Sankey/index.tsx:307 +#: src/components/Sankey/index.tsx:430 msgid "Visitors, International Students + Temporary Workers" msgstr "Visiteurs, étudiants internationaux + travailleurs temporaires" @@ -2674,11 +2685,11 @@ msgstr "Nous étions frustrés par le manque de données claires, accessibles et msgid "We're strictly non-partisan—we don't judge policies or debate spending decisions. Our only goal is to ensure that every Canadian understands how the federal government spends money." msgstr "Nous sommes strictement non partisans—nous ne jugeons pas les politiques ni ne débattons des décisions de dépenses. Notre seul objectif est de nous assurer que chaque Canadien comprenne comment le gouvernement fédéral dépense l'argent." -#: src/components/Sankey/index.tsx:172 +#: src/components/Sankey/index.tsx:295 msgid "Weather Services" msgstr "Services météorologiques" -#: src/components/Sankey/index.tsx:122 +#: src/components/Sankey/index.tsx:245 msgid "Western + Northern Economic Development" msgstr "Développement économique de l'Ouest + du Nord" @@ -2706,8 +2717,8 @@ msgstr "Lorsque LGIC a été fondé au cours de l'exercice 2005 en tant que Bure msgid "Where do you get the data on your website?" msgstr "D'où proviennent les données sur votre site web?" -#: src/app/[lang]/(main)/tax-visualizer/page.tsx:192 -#: src/app/[lang]/(main)/tax-visualizer/page.tsx:214 +#: src/app/[lang]/(main)/tax-visualizer/page.tsx:199 +#: src/app/[lang]/(main)/tax-visualizer/page.tsx:221 msgid "Where Your Tax Dollars Go" msgstr "" @@ -2775,22 +2786,18 @@ msgstr "Pourquoi avez-vous commencé ce projet?" msgid "You deserve the facts" msgstr "Vous méritez les faits" -#: src/app/[lang]/(main)/tax-visualizer/page.tsx:88 -msgid "Your effective tax rate" -msgstr "" - -#: src/app/[lang]/(main)/tax-visualizer/page.tsx:226 -msgid "Your tax contributions are based off of employment income. Other sources of income, such as self-employment, investment income, and capital gains, are not included in the calculations. Deductions such as RRSP contributions are also not included." +#: src/app/[lang]/(main)/tax-visualizer/page.tsx:233 +msgid "Your tax contributions are approximated based on employment income. Deductions such as basic personal amount are estimated and included. Other sources of income, such as self-employment, investment income, and capital gains, are not included in the calculations. Deductions such as RRSP and FHSA contributions are also not included. Tax calculations are based on 2024 federal and provincial tax brackets." msgstr "" -#: src/components/Sankey/index.tsx:523 +#: src/components/Sankey/index.tsx:646 msgid "Yukon EQP" msgstr "PÉ Yukon" -#: src/components/Sankey/index.tsx:409 +#: src/components/Sankey/index.tsx:532 msgid "Yukon HTP" msgstr "TCS Yukon" -#: src/components/Sankey/index.tsx:466 +#: src/components/Sankey/index.tsx:589 msgid "Yukon STP" msgstr "TPS Yukon"