fix(content): update news titles, metadata and content across en, es, pt locales
- Fix titles, descriptions, and formatting in 41 news files - Update tags and categories for consistency - Correct content across all language versions
This commit is contained in:
parent
dac91717b4
commit
fb6976c67f
File diff suppressed because it is too large
Load Diff
2846
pnpm-lock.yaml
2846
pnpm-lock.yaml
File diff suppressed because it is too large
Load Diff
|
|
@ -2,7 +2,7 @@
|
||||||
locale: fr
|
locale: fr
|
||||||
title: 'Centre du Royaume de Paix et de Justice'
|
title: 'Centre du Royaume de Paix et de Justice'
|
||||||
date: 2026-03-03
|
date: 2026-03-03
|
||||||
slug: 2026-03-03-comunicado-centro-del-reino-de-paz-y-justicia
|
slug: 2026-03-03-centre-du-reino-de-paz-et-de-justice
|
||||||
place: ''
|
place: ''
|
||||||
tags: [Israël, Communiqué]
|
tags: [Israël, Communiqué]
|
||||||
thumbnail: 'https://ik.imagekit.io/crpy/tr:w-1280/comunicado-2.png'
|
thumbnail: 'https://ik.imagekit.io/crpy/tr:w-1280/comunicado-2.png'
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ title: "Gideon Sa'ar recebeu o Dr. José Benjamín Pérez Matos na sede do Minis
|
||||||
date: 2026-05-18
|
date: 2026-05-18
|
||||||
slug: 2026-05-18-gideon-saar-recebeu-o-dr-jose-benjamin-perez-matos-na-sede-do-ministerio-das-relacoes-exteriores-de-israel
|
slug: 2026-05-18-gideon-saar-recebeu-o-dr-jose-benjamin-perez-matos-na-sede-do-ministerio-das-relacoes-exteriores-de-israel
|
||||||
city: 'Jerusalém'
|
city: 'Jerusalém'
|
||||||
country: 'Israel'
|
country: 'IL'
|
||||||
thumbnail: 'https://ik.imagekit.io/crpy/tr:w-1280,q-50/2026-05-18-1.png'
|
thumbnail: 'https://ik.imagekit.io/crpy/tr:w-1280,q-50/2026-05-18-1.png'
|
||||||
tags: [Israel, Bolívia, Colômbia, Venezuela, El Salvador, Argentina, Estados Unidos]
|
tags: [Israel, Bolívia, Colômbia, Venezuela, El Salvador, Argentina, Estados Unidos]
|
||||||
gallery: [
|
gallery: [
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
locale: rw
|
locale: rw
|
||||||
title: 'Igitangaza cya Israel nyuma y’imyaka 76: ubwigenge, amakimbirane n’icyerekezo cy’isezerano ku rwego rw’isi'
|
title: 'Igitangaza cya Israel nyuma y’imyaka 76: ubwigenge, amakimbirane n’icyerekezo cy’isezerano ku rwego rw’isi'
|
||||||
date: 2024-05-14
|
date: 2024-05-14
|
||||||
slug: 2024-05-14-el-milagro-de-israel-a-76-anos-soberania-conflicto-y-la-proyeccion-de-una-promesa-global
|
slug: 2024-05-14-igitangaza-cya-israel-nyuma-yimyaka-76-ubwigenge-amakimbirane-nicyerekezo-cyisezerano-ku-rwego-rwisi
|
||||||
place: ''
|
place: ''
|
||||||
country: 'PR'
|
country: 'PR'
|
||||||
city: 'Cayey'
|
city: 'Cayey'
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
{"version":{"fullVersion":"2.4.0","major":"2","minor":"4","patch":"0"},"meta":{"flags":["experimentalData"]},"collections":[{"name":"news","label":"News","path":"src/content/news","format":"md","match":{"include":"**/*"},"ui":{"filename":{"readonly":false}},"fields":[{"type":"string","name":"locale","label":"Language","options":[{"label":"Español","value":"es"},{"label":"English","value":"en"},{"label":"Português","value":"pt"},{"label":"Kinyarwanda","value":"rw"},{"label":"Frances","value":"fr"}],"namespace":["news","locale"],"searchable":true,"uid":false},{"type":"string","name":"title","label":"Title","isTitle":true,"required":true,"namespace":["news","title"],"searchable":true,"uid":false},{"type":"datetime","name":"date","label":"Date","required":true,"namespace":["news","date"],"searchable":true,"uid":false},{"type":"string","name":"slug","label":"Slug","namespace":["news","slug"],"searchable":true,"uid":false},{"type":"string","name":"place","label":"Place","namespace":["news","place"],"searchable":true,"uid":false},{"type":"string","name":"country","label":"Country","namespace":["news","country"],"searchable":true,"uid":false},{"type":"string","name":"city","label":"City","namespace":["news","city"],"searchable":true,"uid":false},{"type":"image","name":"thumbnail","label":"Thumbnail URL","namespace":["news","thumbnail"],"searchable":false,"uid":false},{"type":"image","name":"thumbnail_square","label":"Thumbnail Square URL","namespace":["news","thumbnail_square"],"searchable":false,"uid":false},{"type":"string","name":"tags","label":"Tags","list":true,"namespace":["news","tags"],"searchable":true,"uid":false},{"type":"object","name":"gallery","label":"Gallery","list":true,"fields":[{"type":"image","name":"image","label":"Image","namespace":["news","gallery","image"],"searchable":false,"uid":false}],"namespace":["news","gallery"],"searchable":true,"uid":false},{"type":"string","name":"youtube","label":"YouTube ID","namespace":["news","youtube"],"searchable":true,"uid":false},{"type":"boolean","name":"draft","label":"Draft","namespace":["news","draft"],"searchable":true,"uid":false},{"type":"rich-text","name":"body","label":"Content","isBody":true,"namespace":["news","body"],"searchable":true,"parser":{"type":"markdown"},"uid":false}],"namespace":["news"]},{"name":"documentaries","label":"Documentaries","path":"src/content/documentaries","format":"md","fields":[{"type":"string","name":"locale","label":"Language","options":[{"label":"Español","value":"es"},{"label":"English","value":"en"},{"label":"Português","value":"pt"},{"label":"Kinyarwanda","value":"rw"}],"namespace":["documentaries","locale"],"searchable":true,"uid":false},{"type":"string","name":"title","label":"Title","isTitle":true,"required":true,"namespace":["documentaries","title"],"searchable":true,"uid":false},{"type":"string","name":"video_yt","label":"YouTube ID","namespace":["documentaries","video_yt"],"searchable":true,"uid":false},{"type":"datetime","name":"date","label":"Date","required":true,"namespace":["documentaries","date"],"searchable":true,"uid":false}],"namespace":["documentaries"]}],"config":{"media":{"tina":{"publicFolder":"public","mediaRoot":"public/images"}}}}
|
{"version":{"fullVersion":"2.4.2","major":"2","minor":"4","patch":"2"},"meta":{"flags":["experimentalData"]},"collections":[{"name":"news","label":"News","path":"src/content/news","format":"md","match":{"include":"**/*"},"ui":{"filename":{"readonly":false}},"fields":[{"type":"string","name":"locale","label":"Language","options":[{"label":"Español","value":"es"},{"label":"English","value":"en"},{"label":"Português","value":"pt"},{"label":"Kinyarwanda","value":"rw"},{"label":"Frances","value":"fr"}],"namespace":["news","locale"],"searchable":true,"uid":false},{"type":"string","name":"title","label":"Title","isTitle":true,"required":true,"namespace":["news","title"],"searchable":true,"uid":false},{"type":"datetime","name":"date","label":"Date","required":true,"namespace":["news","date"],"searchable":true,"uid":false},{"type":"string","name":"slug","label":"Slug","namespace":["news","slug"],"searchable":true,"uid":false},{"type":"string","name":"place","label":"Place","namespace":["news","place"],"searchable":true,"uid":false},{"type":"string","name":"country","label":"Country","namespace":["news","country"],"searchable":true,"uid":false},{"type":"string","name":"city","label":"City","namespace":["news","city"],"searchable":true,"uid":false},{"type":"image","name":"thumbnail","label":"Thumbnail URL","namespace":["news","thumbnail"],"searchable":false,"uid":false},{"type":"image","name":"thumbnail_square","label":"Thumbnail Square URL","namespace":["news","thumbnail_square"],"searchable":false,"uid":false},{"type":"string","name":"tags","label":"Tags","list":true,"namespace":["news","tags"],"searchable":true,"uid":false},{"type":"object","name":"gallery","label":"Gallery","list":true,"fields":[{"type":"image","name":"image","label":"Image","namespace":["news","gallery","image"],"searchable":false,"uid":false}],"namespace":["news","gallery"],"searchable":true,"uid":false},{"type":"string","name":"youtube","label":"YouTube ID","namespace":["news","youtube"],"searchable":true,"uid":false},{"type":"boolean","name":"draft","label":"Draft","namespace":["news","draft"],"searchable":true,"uid":false},{"type":"rich-text","name":"body","label":"Content","isBody":true,"namespace":["news","body"],"searchable":true,"parser":{"type":"markdown"},"uid":false}],"namespace":["news"]},{"name":"documentaries","label":"Documentaries","path":"src/content/documentaries","format":"md","fields":[{"type":"string","name":"locale","label":"Language","options":[{"label":"Español","value":"es"},{"label":"English","value":"en"},{"label":"Português","value":"pt"},{"label":"Kinyarwanda","value":"rw"}],"namespace":["documentaries","locale"],"searchable":true,"uid":false},{"type":"string","name":"title","label":"Title","isTitle":true,"required":true,"namespace":["documentaries","title"],"searchable":true,"uid":false},{"type":"string","name":"video_yt","label":"YouTube ID","namespace":["documentaries","video_yt"],"searchable":true,"uid":false},{"type":"datetime","name":"date","label":"Date","required":true,"namespace":["documentaries","date"],"searchable":true,"uid":false}],"namespace":["documentaries"]}],"config":{"media":{"tina":{"publicFolder":"public","mediaRoot":"public/images"}}}}
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
import { createClient } from "tinacms/dist/client";
|
import { createClient } from "tinacms/dist/client";
|
||||||
import { queries } from "./types";
|
import { queries } from "./types.js";
|
||||||
export const client = createClient({ url: 'http://localhost:4001/graphql', token: 'null', queries, });
|
export const client = createClient({ url: 'http://localhost:4001/graphql', token: 'null', queries, });
|
||||||
export default client;
|
export default client;
|
||||||
|
|
||||||
|
|
@ -0,0 +1,197 @@
|
||||||
|
export function gql(strings, ...args) {
|
||||||
|
let str = "";
|
||||||
|
strings.forEach((string, i) => {
|
||||||
|
str += string + (args[i] || "");
|
||||||
|
});
|
||||||
|
return str;
|
||||||
|
}
|
||||||
|
export const NewsPartsFragmentDoc = gql`
|
||||||
|
fragment NewsParts on News {
|
||||||
|
__typename
|
||||||
|
locale
|
||||||
|
title
|
||||||
|
date
|
||||||
|
slug
|
||||||
|
place
|
||||||
|
country
|
||||||
|
city
|
||||||
|
thumbnail
|
||||||
|
thumbnail_square
|
||||||
|
tags
|
||||||
|
gallery {
|
||||||
|
__typename
|
||||||
|
image
|
||||||
|
}
|
||||||
|
youtube
|
||||||
|
draft
|
||||||
|
body
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
export const DocumentariesPartsFragmentDoc = gql`
|
||||||
|
fragment DocumentariesParts on Documentaries {
|
||||||
|
__typename
|
||||||
|
locale
|
||||||
|
title
|
||||||
|
video_yt
|
||||||
|
date
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
export const NewsDocument = gql`
|
||||||
|
query news($relativePath: String!) {
|
||||||
|
news(relativePath: $relativePath) {
|
||||||
|
... on Document {
|
||||||
|
_sys {
|
||||||
|
filename
|
||||||
|
basename
|
||||||
|
hasReferences
|
||||||
|
breadcrumbs
|
||||||
|
path
|
||||||
|
relativePath
|
||||||
|
extension
|
||||||
|
}
|
||||||
|
id
|
||||||
|
}
|
||||||
|
...NewsParts
|
||||||
|
}
|
||||||
|
}
|
||||||
|
${NewsPartsFragmentDoc}`;
|
||||||
|
export const NewsConnectionDocument = gql`
|
||||||
|
query newsConnection($before: String, $after: String, $first: Float, $last: Float, $sort: String, $filter: NewsFilter) {
|
||||||
|
newsConnection(
|
||||||
|
before: $before
|
||||||
|
after: $after
|
||||||
|
first: $first
|
||||||
|
last: $last
|
||||||
|
sort: $sort
|
||||||
|
filter: $filter
|
||||||
|
) {
|
||||||
|
pageInfo {
|
||||||
|
hasPreviousPage
|
||||||
|
hasNextPage
|
||||||
|
startCursor
|
||||||
|
endCursor
|
||||||
|
}
|
||||||
|
totalCount
|
||||||
|
edges {
|
||||||
|
cursor
|
||||||
|
node {
|
||||||
|
... on Document {
|
||||||
|
_sys {
|
||||||
|
filename
|
||||||
|
basename
|
||||||
|
hasReferences
|
||||||
|
breadcrumbs
|
||||||
|
path
|
||||||
|
relativePath
|
||||||
|
extension
|
||||||
|
}
|
||||||
|
id
|
||||||
|
}
|
||||||
|
...NewsParts
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
${NewsPartsFragmentDoc}`;
|
||||||
|
export const DocumentariesDocument = gql`
|
||||||
|
query documentaries($relativePath: String!) {
|
||||||
|
documentaries(relativePath: $relativePath) {
|
||||||
|
... on Document {
|
||||||
|
_sys {
|
||||||
|
filename
|
||||||
|
basename
|
||||||
|
hasReferences
|
||||||
|
breadcrumbs
|
||||||
|
path
|
||||||
|
relativePath
|
||||||
|
extension
|
||||||
|
}
|
||||||
|
id
|
||||||
|
}
|
||||||
|
...DocumentariesParts
|
||||||
|
}
|
||||||
|
}
|
||||||
|
${DocumentariesPartsFragmentDoc}`;
|
||||||
|
export const DocumentariesConnectionDocument = gql`
|
||||||
|
query documentariesConnection($before: String, $after: String, $first: Float, $last: Float, $sort: String, $filter: DocumentariesFilter) {
|
||||||
|
documentariesConnection(
|
||||||
|
before: $before
|
||||||
|
after: $after
|
||||||
|
first: $first
|
||||||
|
last: $last
|
||||||
|
sort: $sort
|
||||||
|
filter: $filter
|
||||||
|
) {
|
||||||
|
pageInfo {
|
||||||
|
hasPreviousPage
|
||||||
|
hasNextPage
|
||||||
|
startCursor
|
||||||
|
endCursor
|
||||||
|
}
|
||||||
|
totalCount
|
||||||
|
edges {
|
||||||
|
cursor
|
||||||
|
node {
|
||||||
|
... on Document {
|
||||||
|
_sys {
|
||||||
|
filename
|
||||||
|
basename
|
||||||
|
hasReferences
|
||||||
|
breadcrumbs
|
||||||
|
path
|
||||||
|
relativePath
|
||||||
|
extension
|
||||||
|
}
|
||||||
|
id
|
||||||
|
}
|
||||||
|
...DocumentariesParts
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
${DocumentariesPartsFragmentDoc}`;
|
||||||
|
export function getSdk(requester) {
|
||||||
|
return {
|
||||||
|
news(variables, options) {
|
||||||
|
return requester(NewsDocument, variables, options);
|
||||||
|
},
|
||||||
|
newsConnection(variables, options) {
|
||||||
|
return requester(NewsConnectionDocument, variables, options);
|
||||||
|
},
|
||||||
|
documentaries(variables, options) {
|
||||||
|
return requester(DocumentariesDocument, variables, options);
|
||||||
|
},
|
||||||
|
documentariesConnection(variables, options) {
|
||||||
|
return requester(DocumentariesConnectionDocument, variables, options);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
import { createClient } from "tinacms/dist/client";
|
||||||
|
const generateRequester = (client) => {
|
||||||
|
const requester = async (doc, vars, options) => {
|
||||||
|
let url = client.apiUrl;
|
||||||
|
if (options?.branch) {
|
||||||
|
const index = client.apiUrl.lastIndexOf("/");
|
||||||
|
url = client.apiUrl.substring(0, index + 1) + options.branch;
|
||||||
|
}
|
||||||
|
const data = await client.request({
|
||||||
|
query: doc,
|
||||||
|
variables: vars,
|
||||||
|
url
|
||||||
|
}, options);
|
||||||
|
return { data: data?.data, errors: data?.errors, query: doc, variables: vars || {} };
|
||||||
|
};
|
||||||
|
return requester;
|
||||||
|
};
|
||||||
|
export const ExperimentalGetTinaClient = () => getSdk(
|
||||||
|
generateRequester(
|
||||||
|
createClient({
|
||||||
|
url: "http://localhost:4001/graphql",
|
||||||
|
queries
|
||||||
|
})
|
||||||
|
)
|
||||||
|
);
|
||||||
|
export const queries = (client) => {
|
||||||
|
const requester = generateRequester(client);
|
||||||
|
return getSdk(requester);
|
||||||
|
};
|
||||||
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue