diff --git a/src/components/array-libraries.js b/src/components/array-libraries.js index c2ecaa9ed..b11d60cd4 100644 --- a/src/components/array-libraries.js +++ b/src/components/array-libraries.js @@ -43,8 +43,7 @@ const Library = ({ name, description, repo, url, logo }) => { export const ArrayLibraries = () => { const { t } = useLingui() - let data = getLibraries() - const libraries = React.useMemo(() => data, []) + const libraries = getLibraries() return ( diff --git a/src/components/dashboard/timeline-plot-container.js b/src/components/dashboard/timeline-plot-container.js index 16836aafc..a68ec2674 100644 --- a/src/components/dashboard/timeline-plot-container.js +++ b/src/components/dashboard/timeline-plot-container.js @@ -38,8 +38,7 @@ export const TimelinePlotContainer = () => { return ( - {t`This is a timeline of how many open issues and pull requests Xarray has on Github over time from ${new Date(start).toLocaleDateString()} to `} - {new Date(end).toLocaleDateString()}. + {t`This is a timeline of how many open issues and pull requests Xarray has on Github over time from ${new Date(start).toLocaleDateString()} to ${new Date(end).toLocaleDateString()}.`}

@@ -48,7 +47,7 @@ export const TimelinePlotContainer = () => { {t`Pull Requests`} - Issues + {t`Issues`} diff --git a/src/components/dashboard/timeseries-agg-stats-card.js b/src/components/dashboard/timeseries-agg-stats-card.js index e15c037a6..3e48aa226 100644 --- a/src/components/dashboard/timeseries-agg-stats-card.js +++ b/src/components/dashboard/timeseries-agg-stats-card.js @@ -45,8 +45,7 @@ export const TimeseriesAggStatsCard = ({ query, title, icon }) => { const change = { type: diffPercentage < 0 ? 'increase' : 'decrease', - value: - `${d3.format('.2f')(Math.abs(diffPercentage))}% ` + t`since last month`, + value: t`${d3.format('.2f')(Math.abs(diffPercentage))}% since last month`, } return ( { icon={icon} stat={ result <= 2 - ? `${d3.format('.1f')(result * 24)} ` + t`hours` - : `${d3.format('.1f')(result)} ` + t`days` + ? t`${d3.format('.1f')(result * 24)} hours` + : t`${d3.format('.1f')(result)} days` } diff={change} /> diff --git a/src/components/donate.js b/src/components/donate.js index f567f923d..3875e58ef 100644 --- a/src/components/donate.js +++ b/src/components/donate.js @@ -42,7 +42,7 @@ export const Donate = () => { color={'blue.400'} useExternalIcon > - 501(c)(3) nonprofit charity + {t`501(c)(3) nonprofit charity`}
{' '} {t`in the United States. NumFOCUS provides Xarray with fiscal, legal, and administrative support to help ensure the health and diff --git a/src/components/features.js b/src/components/features.js index ef0c104fa..daa5acf40 100644 --- a/src/components/features.js +++ b/src/components/features.js @@ -16,8 +16,7 @@ import { useLingui } from '@lingui/react/macro' export const Features = () => { const { t } = useLingui() - let data = getFeatures() - const features = React.useMemo(() => data, []) + const features = getFeatures() return ( diff --git a/src/components/footer.js b/src/components/footer.js index 6b18f54f8..80585ce6e 100644 --- a/src/components/footer.js +++ b/src/components/footer.js @@ -76,7 +76,7 @@ export const Footer = () => { - {t`© ${currentYear}, Xarray core developers. Apache 2.0Licensed.`} + {t`© ${currentYear}, Xarray core developers. Apache 2.0 Licensed.`} diff --git a/src/components/repl.js b/src/components/repl.js index 7c934b37a..ee89b6e3c 100644 --- a/src/components/repl.js +++ b/src/components/repl.js @@ -68,7 +68,7 @@ export const Repl = () => { - Try Xarray + {t`Try Xarray`} {t`Try Xarray in a REPL directly in your browser (no installation needed)!`} diff --git a/src/components/scientific-domains.js b/src/components/scientific-domains.js index 27abfaf98..412665e8a 100644 --- a/src/components/scientific-domains.js +++ b/src/components/scientific-domains.js @@ -9,8 +9,7 @@ import { useLingui } from '@lingui/react/macro' export const ScientificDomains = () => { const { t } = useLingui() - const Projects = getProjects() - const projects = React.useMemo(() => Projects, []) + const projects = getProjects() return ( diff --git a/src/data/features.js b/src/data/features.js index c196ee8d3..0eb0afaf9 100644 --- a/src/data/features.js +++ b/src/data/features.js @@ -29,7 +29,7 @@ export const getFeatures = () => { }, { title: t`Arbitrary metadata tracking`, - text: 'Keep track of arbitrary metadata in the form of a Python dictionary.', + text: t`Keep track of arbitrary metadata in the form of a Python dictionary.`, }, { title: t`Flexible and Extensible I/O backend API`, diff --git a/src/data/projects.js b/src/data/projects.js index 07656efed..cb1fc31c5 100644 --- a/src/data/projects.js +++ b/src/data/projects.js @@ -29,7 +29,7 @@ export function getProjects() { }, { name: 'MetPy', - description: `tCollection of tools for reading, visualizing and performing calculations with weather data`, + description: t`Collection of tools for reading, visualizing and performing calculations with weather data`, domains: [t`🌪🌡 Meteorology`], repo: 'https://github.com/Unidata/MetPy', homepage: 'https://unidata.github.io/MetPy', @@ -62,50 +62,47 @@ export function getProjects() { { name: 'hvPlot', description: t`A high-level plotting API for the PyData ecosystem built on HoloViews`, - domains: ['📊 Visualization'], + domains: [t`📊 Visualization`], repo: 'https://github.com/holoviz/hvplot', homepage: 'https://hvplot.holoviz.org/', logo: '/projects/hvplot-logo_horizontal.svg', }, { name: 'Pangeo', - description: 'A community platform for Big Data geoscience', - domains: ['🌎 Geoscience'], + description: t`A community platform for Big Data geoscience`, + domains: [t`🌎 Geoscience`], homepage: 'https://pangeo.io/', repo: 'https://github.com/pangeo-data', logo: '/projects/pangeo_simple_logo.svg', }, { name: 'cf-xarray', - description: - 'An accessor for Xarray objects that interprets Climate and Forecast (CF) metadata convention attributes', - domains: ['🌎 Geoscience'], + description: t`An accessor for Xarray objects that interprets Climate and Forecast (CF) metadata convention attributes`, + domains: [t`🌎 Geoscience`], homepage: 'https://cf-xarray.readthedocs.io', repo: 'https://github.com/xarray-contrib/cf-xarray', logo: '/projects/cf-xarray-logo.svg', }, { name: 'omfit', - description: - 'Integrated modeling and experimental data analysis software for magnetically confined thermonuclear fusion experiments', - domains: ['💥 plasma physics'], + description: t`Integrated modeling and experimental data analysis software for magnetically confined thermonuclear fusion experiments`, + domains: [t`💥 plasma physics`], homepage: 'https://omfit.io', repo: 'https://omfit.io/install.html#get-access-to-the-omfit-source-code', logo: '/projects/OMFIT_logo.png', }, { name: 'sgkit', - description: 'Scalable statistical genetic data analysis in Python', - domains: ['🧬 genomics'], + description: t`Scalable statistical genetic data analysis in Python`, + domains: [t`🧬 genomics`], homepage: 'https://sgkit-dev.github.io/sgkit/latest/', repo: 'https://github.com/sgkit-dev/sgkit', logo: '/projects/sgkit_trnsprnt.png', }, { name: 'xmip', - description: - 'Analysis ready CMIP6 data in Python the easy way with pangeo tools.', - domains: ['🌎 Geoscience'], + description: t`Analysis ready CMIP6 data in Python the easy way with pangeo tools.`, + domains: [t`🌎 Geoscience`], homepage: 'https://cmip6-preprocessing.readthedocs.io/', repo: 'https://github.com/jbusecke/xmip', logo: '/projects/xmip.png', diff --git a/src/locales/en/messages.po b/src/locales/en/messages.po index 00a85f674..3c2d5da91 100644 --- a/src/locales/en/messages.po +++ b/src/locales/en/messages.po @@ -13,15 +13,37 @@ msgstr "" "Language-Team: \n" "Plural-Forms: \n" +#. placeholder {0}: d3.format('.1f')(result) +#: src/components/dashboard/timeseries-agg-stats-card.js:57 +msgid "{0} days" +msgstr "{0} days" + +#. placeholder {0}: d3.format('.1f')(result * 24) +#: src/components/dashboard/timeseries-agg-stats-card.js:56 +msgid "{0} hours" +msgstr "{0} hours" + +#. placeholder {0}: d3.format('.2f')(Math.abs(diffPercentage)) +#: src/components/dashboard/timeseries-agg-stats-card.js:48 +msgid "{0}% since last month" +msgstr "{0}% since last month" + +#: src/components/footer.js:79 +msgid "© {currentYear}, Xarray core developers. Apache 2.0 Licensed." +msgstr "© {currentYear}, Xarray core developers. Apache 2.0 Licensed." + #: src/components/footer.js:79 -msgid "© {currentYear}, Xarray core developers. Apache 2.0Licensed." -msgstr "© {currentYear}, Xarray core developers. Apache 2.0Licensed." +#~ msgid "© {currentYear}, Xarray core developers. Apache 2.0Licensed." +#~ msgstr "© {currentYear}, Xarray core developers. Apache 2.0Licensed." #: src/data/projects.js:9 msgid "🌊 Oceanography" msgstr "🌊 Oceanography" #: src/data/projects.js:41 +#: src/data/projects.js:73 +#: src/data/projects.js:81 +#: src/data/projects.js:105 msgid "🌎 Geoscience" msgstr "🌎 Geoscience" @@ -33,27 +55,51 @@ msgstr "🌪🌡 Meteorology" msgid "💊 Bioinformatics" msgstr "💊 Bioinformatics" +#: src/data/projects.js:89 +msgid "💥 plasma physics" +msgstr "💥 plasma physics" + +#: src/data/projects.js:65 +msgid "📊 Visualization" +msgstr "📊 Visualization" + #: src/data/projects.js:17 #: src/data/projects.js:49 msgid "🗺️ Geographic Processing" msgstr "🗺️ Geographic Processing" -#: src/pages/team.js:52 +#: src/data/projects.js:97 +msgid "🧬 genomics" +msgstr "🧬 genomics" + +#: src/pages/team.js:62 msgid "370 volunteer contributors" msgstr "370 volunteer contributors" -#: src/components/donate.js:47 -#~ msgid "501(c)(3) nonprofit charity" -#~ msgstr "501(c)(3) nonprofit charity" +#: src/components/donate.js:45 +msgid "501(c)(3) nonprofit charity" +msgstr "501(c)(3) nonprofit charity" + +#: src/data/projects.js:72 +msgid "A community platform for Big Data geoscience" +msgstr "A community platform for Big Data geoscience" #: src/data/projects.js:64 msgid "A high-level plotting API for the PyData ecosystem built on HoloViews" msgstr "A high-level plotting API for the PyData ecosystem built on HoloViews" +#: src/data/projects.js:80 +msgid "An accessor for Xarray objects that interprets Climate and Forecast (CF) metadata convention attributes" +msgstr "An accessor for Xarray objects that interprets Climate and Forecast (CF) metadata convention attributes" + #: src/data/array-libraries.js:29 msgid "An implementation of chunked, compressed, N-dimensional arrays for Python." msgstr "An implementation of chunked, compressed, N-dimensional arrays for Python." +#: src/data/projects.js:104 +msgid "Analysis ready CMIP6 data in Python the easy way with pangeo tools." +msgstr "Analysis ready CMIP6 data in Python the easy way with pangeo tools." + #: src/data/features.js:11 msgid "Apply operations over named dimensions" msgstr "Apply operations over named dimensions" @@ -95,6 +141,10 @@ msgstr "Check out the latest blog post:" msgid "Citing Xarray" msgstr "Citing Xarray" +#: src/data/projects.js:32 +msgid "Collection of tools for reading, visualizing and performing calculations with weather data" +msgstr "Collection of tools for reading, visualizing and performing calculations with weather data" + #: src/data/projects.js:56 msgid "Collection of tools for the analysis and visualization of spatial molecular data" msgstr "Collection of tools for the analysis and visualization of spatial molecular data" @@ -119,7 +169,7 @@ msgstr "Contributors" msgid "Core Maintainers" msgstr "Core Maintainers" -#: src/pages/team.js:26 +#: src/pages/team.js:36 msgid "Current core maintainers 🤝" msgstr "Current core maintainers 🤝" @@ -136,8 +186,8 @@ msgid "Database like operations" msgstr "Database like operations" #: src/components/dashboard/timeseries-agg-stats-card.js:58 -msgid "days" -msgstr "days" +#~ msgid "days" +#~ msgstr "days" #: src/components/dashboard/project-metrics.js:68 msgid "Dependent Packages/Repos" @@ -226,8 +276,8 @@ msgid "GroupBy operations" msgstr "GroupBy operations" #: src/components/dashboard/timeseries-agg-stats-card.js:57 -msgid "hours" -msgstr "hours" +#~ msgid "hours" +#~ msgstr "hours" #: src/components/donate.js:60 msgid "If you like Xarray and want to support our mission, please consider making a donation to support our efforts." @@ -273,6 +323,10 @@ msgstr "" #~ " and administrative support to help ensure the health and\n" #~ " sustainability of the project. Visit{' '}" +#: src/data/projects.js:88 +msgid "Integrated modeling and experimental data analysis software for magnetically confined thermonuclear fusion experiments" +msgstr "Integrated modeling and experimental data analysis software for magnetically confined thermonuclear fusion experiments" + #: src/data/features.js:7 msgid "Interoperability" msgstr "Interoperability" @@ -285,7 +339,15 @@ msgstr "Interoperable with the scientific Python ecosystem including NumPy, Dask msgid "Issue Tracker" msgstr "Issue Tracker" -#: src/components/features.js:25 +#: src/components/dashboard/timeline-plot-container.js:50 +msgid "Issues" +msgstr "Issues" + +#: src/data/features.js:32 +msgid "Keep track of arbitrary metadata in the form of a Python dictionary." +msgstr "Keep track of arbitrary metadata in the form of a Python dictionary." + +#: src/components/features.js:24 msgid "Key Features & Capabilities" msgstr "Key Features & Capabilities" @@ -329,7 +391,7 @@ msgstr "NumPy-compatible array library for GPU-accelerated computing with Python msgid "Operate and manipulate physical quantities in Python" msgstr "Operate and manipulate physical quantities in Python" -#: src/pages/team.js:44 +#: src/pages/team.js:54 msgid "Our valuable contributors 💖" msgstr "Our valuable contributors 💖" @@ -337,7 +399,7 @@ msgstr "Our valuable contributors 💖" msgid "Portuguese" msgstr "Portuguese" -#: src/components/dashboard/timeline-plot-container.js:49 +#: src/components/dashboard/timeline-plot-container.js:48 msgid "Pull Requests" msgstr "Pull Requests" @@ -365,11 +427,15 @@ msgstr "Resources" msgid "Roadmap" msgstr "Roadmap" +#: src/data/projects.js:96 +msgid "Scalable statistical genetic data analysis in Python" +msgstr "Scalable statistical genetic data analysis in Python" + #: src/components/ecosystem.js:75 msgid "Scientific Domains" msgstr "Scientific Domains" -#: src/components/scientific-domains.js:48 +#: src/components/scientific-domains.js:47 msgid "See More" msgstr "See More" @@ -378,8 +444,8 @@ msgid "Select values by label instead of integer location" msgstr "Select values by label instead of integer location" #: src/components/dashboard/timeseries-agg-stats-card.js:49 -msgid "since last month" -msgstr "since last month" +#~ msgid "since last month" +#~ msgstr "since last month" #: src/components/language-switcher.js:19 msgid "Spanish" @@ -410,16 +476,21 @@ msgid "Supported By" msgstr "Supported By" #: src/data/footer-items.js:9 -#: src/pages/team.js:21 +#: src/pages/team.js:31 msgid "Team" msgstr "Team" +#: src/components/dashboard/timeline-plot-container.js:41 +#~ msgid "This is a timeline of how many open issues and pull requests Xarray has on Github over time from {0} to " +#~ msgstr "This is a timeline of how many open issues and pull requests Xarray has on Github over time from {0} to " + #. placeholder {0}: new Date(start).toLocaleDateString() +#. placeholder {1}: new Date(end).toLocaleDateString() #: src/components/dashboard/timeline-plot-container.js:41 -msgid "This is a timeline of how many open issues and pull requests Xarray has on Github over time from {0} to " -msgstr "This is a timeline of how many open issues and pull requests Xarray has on Github over time from {0} to " +msgid "This is a timeline of how many open issues and pull requests Xarray has on Github over time from {0} to {1}." +msgstr "This is a timeline of how many open issues and pull requests Xarray has on Github over time from {0} to {1}." -#: src/components/scientific-domains.js:17 +#: src/components/scientific-domains.js:16 msgid "This section lists some of the standalone packages, projects developed with xarray." msgstr "This section lists some of the standalone packages, projects developed with xarray." @@ -427,6 +498,10 @@ msgstr "This section lists some of the standalone packages, projects developed w msgid "Try" msgstr "Try" +#: src/components/repl.js:71 +msgid "Try Xarray" +msgstr "Try Xarray" + #: src/components/repl.js:74 msgid "Try Xarray in a REPL directly in your browser (no installation needed)!" msgstr "Try Xarray in a REPL directly in your browser (no installation needed)!" @@ -443,7 +518,7 @@ msgstr "Vectorized operations" msgid "Verification of weather and climate forecasts" msgstr "Verification of weather and climate forecasts" -#: src/pages/team.js:55 +#: src/pages/team.js:65 msgid "We appreciate all contributions from community to make Xarray thrive." msgstr "We appreciate all contributions from community to make Xarray thrive." @@ -479,7 +554,11 @@ msgstr "We thank these institutions for generously supporting the development an msgid "Why Xarray?" msgstr "Why Xarray?" -#: src/pages/team.js:29 +#: src/pages/team.js:22 +msgid "Xarray Contributors" +msgstr "Xarray Contributors" + +#: src/pages/team.js:39 msgid "Xarray core maintainers are responsible for the ongoing organizational maintenance and technical direction of the Xarray project. The current core team comprises:" msgstr "Xarray core maintainers are responsible for the ongoing organizational maintenance and technical direction of the Xarray project. The current core team comprises:" @@ -523,7 +602,7 @@ msgstr "Xarray is a NumFOCUS Sponsored Project, a " msgid "Xarray is an open source project and Python package that introduces labels in the form of dimensions, coordinates, and attributes on top of raw NumPy-like arrays, which allows for more intuitive, more concise, and less error-prone user experience." msgstr "Xarray is an open source project and Python package that introduces labels in the form of dimensions, coordinates, and attributes on top of raw NumPy-like arrays, which allows for more intuitive, more concise, and less error-prone user experience." -#: src/pages/team.js:47 +#: src/pages/team.js:57 msgid "Xarray is made with love by more than " msgstr "Xarray is made with love by more than " @@ -539,16 +618,16 @@ msgstr "Xarray Issue Tracker" msgid "Xarray Project Metrics" msgstr "Xarray Project Metrics" -#: src/pages/dashboard.js:9 -#: src/pages/dashboard.js:11 +#: src/pages/dashboard.js:19 +#: src/pages/dashboard.js:21 msgid "Xarray project statistics" msgstr "Xarray project statistics" -#: src/components/features.js:28 +#: src/components/features.js:27 msgid "Xarray provides data models for working with labeled arrays and datasets. Its toolkit includes a broad set of domain-agnostic functions for advanced analytics and visualization with these data structures." msgstr "Xarray provides data models for working with labeled arrays and datasets. Its toolkit includes a broad set of domain-agnostic functions for advanced analytics and visualization with these data structures." -#: src/components/array-libraries.js:51 +#: src/components/array-libraries.js:50 msgid "Xarray supports multiple array backends, allowing users to choose array types that work best for their application." msgstr "Xarray supports multiple array backends, allowing users to choose array types that work best for their application." @@ -556,6 +635,6 @@ msgstr "Xarray supports multiple array backends, allowing users to choose array #~ msgid "Xarray x NASA: xarray.DataTree for hierarchical data structures" #~ msgstr "Xarray x NASA: xarray.DataTree for hierarchical data structures" -#: src/pages/index.js:29 +#: src/pages/index.js:30 msgid "Xarray: N-D labeled arrays and datasets in Python" msgstr "Xarray: N-D labeled arrays and datasets in Python" diff --git a/src/locales/es/messages.po b/src/locales/es/messages.po index 775493824..8f14d39b9 100644 --- a/src/locales/es/messages.po +++ b/src/locales/es/messages.po @@ -18,15 +18,37 @@ msgstr "" "X-Crowdin-File: /[Scientific-Python-Translations.xarray-translations] main/src/locales/en/messages.po\n" "X-Crowdin-File-ID: 1180\n" +#. placeholder {0}: d3.format('.1f')(result) +#: src/components/dashboard/timeseries-agg-stats-card.js:57 +msgid "{0} days" +msgstr "" + +#. placeholder {0}: d3.format('.1f')(result * 24) +#: src/components/dashboard/timeseries-agg-stats-card.js:56 +msgid "{0} hours" +msgstr "" + +#. placeholder {0}: d3.format('.2f')(Math.abs(diffPercentage)) +#: src/components/dashboard/timeseries-agg-stats-card.js:48 +msgid "{0}% since last month" +msgstr "" + +#: src/components/footer.js:79 +msgid "© {currentYear}, Xarray core developers. Apache 2.0 Licensed." +msgstr "" + #: src/components/footer.js:79 -msgid "© {currentYear}, Xarray core developers. Apache 2.0Licensed." -msgstr "© {currentYear}, desarrolladores principales de Xarray. Licencia Apache 2.0." +#~ msgid "© {currentYear}, Xarray core developers. Apache 2.0Licensed." +#~ msgstr "© {currentYear}, desarrolladores principales de Xarray. Licencia Apache 2.0." #: src/data/projects.js:9 msgid "🌊 Oceanography" msgstr "🌊 Oceanografía" #: src/data/projects.js:41 +#: src/data/projects.js:73 +#: src/data/projects.js:81 +#: src/data/projects.js:105 msgid "🌎 Geoscience" msgstr "🌎 Geociencias" @@ -38,27 +60,51 @@ msgstr "🌪🌡 Metereología" msgid "💊 Bioinformatics" msgstr "💊 Bioinformática" +#: src/data/projects.js:89 +msgid "💥 plasma physics" +msgstr "" + +#: src/data/projects.js:65 +msgid "📊 Visualization" +msgstr "" + #: src/data/projects.js:17 #: src/data/projects.js:49 msgid "🗺️ Geographic Processing" msgstr "🗺️ Procesamiento de datos geográficos" -#: src/pages/team.js:52 +#: src/data/projects.js:97 +msgid "🧬 genomics" +msgstr "" + +#: src/pages/team.js:62 msgid "370 volunteer contributors" msgstr "370 colaboradores voluntarios" -#: src/components/donate.js:47 -#~ msgid "501(c)(3) nonprofit charity" -#~ msgstr "501(c)(3) nonprofit charity" +#: src/components/donate.js:45 +msgid "501(c)(3) nonprofit charity" +msgstr "501(c)(3) nonprofit charity" + +#: src/data/projects.js:72 +msgid "A community platform for Big Data geoscience" +msgstr "" #: src/data/projects.js:64 msgid "A high-level plotting API for the PyData ecosystem built on HoloViews" msgstr "Una API de gráficos de alto nivel para el ecosistema PyData construida sobre HoloViews" +#: src/data/projects.js:80 +msgid "An accessor for Xarray objects that interprets Climate and Forecast (CF) metadata convention attributes" +msgstr "" + #: src/data/array-libraries.js:29 msgid "An implementation of chunked, compressed, N-dimensional arrays for Python." msgstr "Una implementación de matrices N-dimensionales, fragmentadas y comprimidas para Python." +#: src/data/projects.js:104 +msgid "Analysis ready CMIP6 data in Python the easy way with pangeo tools." +msgstr "" + #: src/data/features.js:11 msgid "Apply operations over named dimensions" msgstr "Aplique operaciones sobre dimensiones etiquetadas" @@ -100,6 +146,10 @@ msgstr "" msgid "Citing Xarray" msgstr "Citando Xarray" +#: src/data/projects.js:32 +msgid "Collection of tools for reading, visualizing and performing calculations with weather data" +msgstr "" + #: src/data/projects.js:56 msgid "Collection of tools for the analysis and visualization of spatial molecular data" msgstr "Colección de herramientas para el análisis y visualización de datos moleculares espaciales" @@ -124,7 +174,7 @@ msgstr "Colaboradores" msgid "Core Maintainers" msgstr "Mantenedores Principales" -#: src/pages/team.js:26 +#: src/pages/team.js:36 msgid "Current core maintainers 🤝" msgstr "Mantenedores principales actuales 🤝" @@ -141,8 +191,8 @@ msgid "Database like operations" msgstr "Operaciones similares a bases de datos" #: src/components/dashboard/timeseries-agg-stats-card.js:58 -msgid "days" -msgstr "días" +#~ msgid "days" +#~ msgstr "días" #: src/components/dashboard/project-metrics.js:68 msgid "Dependent Packages/Repos" @@ -231,8 +281,8 @@ msgid "GroupBy operations" msgstr "Operaciones de Agrupado Por" #: src/components/dashboard/timeseries-agg-stats-card.js:57 -msgid "hours" -msgstr "horas" +#~ msgid "hours" +#~ msgstr "horas" #: src/components/donate.js:60 msgid "If you like Xarray and want to support our mission, please consider making a donation to support our efforts." @@ -275,6 +325,10 @@ msgstr "En Estados Unidos. NumFOCUS proporciona a Xarray apoyo fiscal, legal y a #~ " and administrative support to help ensure the health and\n" #~ " sustainability of the project. Visit{' '}" +#: src/data/projects.js:88 +msgid "Integrated modeling and experimental data analysis software for magnetically confined thermonuclear fusion experiments" +msgstr "" + #: src/data/features.js:7 msgid "Interoperability" msgstr "Interoperabilidad" @@ -287,7 +341,15 @@ msgstr "Interoperabilidad con el ecosistema científico de Python, incluyendo Nu msgid "Issue Tracker" msgstr "Listado de reportes" -#: src/components/features.js:25 +#: src/components/dashboard/timeline-plot-container.js:50 +msgid "Issues" +msgstr "" + +#: src/data/features.js:32 +msgid "Keep track of arbitrary metadata in the form of a Python dictionary." +msgstr "" + +#: src/components/features.js:24 msgid "Key Features & Capabilities" msgstr "Características y capacidades" @@ -331,7 +393,7 @@ msgstr "Biblioteca de matrices/arreglos compatible con NumPy para computación a msgid "Operate and manipulate physical quantities in Python" msgstr "Opere y manipule cantidades físicas en Python." -#: src/pages/team.js:44 +#: src/pages/team.js:54 msgid "Our valuable contributors 💖" msgstr "Nuestros valiosos colaboradores 💖" @@ -339,7 +401,7 @@ msgstr "Nuestros valiosos colaboradores 💖" msgid "Portuguese" msgstr "Portugués" -#: src/components/dashboard/timeline-plot-container.js:49 +#: src/components/dashboard/timeline-plot-container.js:48 msgid "Pull Requests" msgstr "Pull Requests" @@ -367,11 +429,15 @@ msgstr "Recursos" msgid "Roadmap" msgstr "Plan de trabajo" +#: src/data/projects.js:96 +msgid "Scalable statistical genetic data analysis in Python" +msgstr "" + #: src/components/ecosystem.js:75 msgid "Scientific Domains" msgstr "Dominios científicos" -#: src/components/scientific-domains.js:48 +#: src/components/scientific-domains.js:47 msgid "See More" msgstr "Ver más" @@ -380,8 +446,8 @@ msgid "Select values by label instead of integer location" msgstr "Seleccione valores por etiqueta en lugar de ubicación entera" #: src/components/dashboard/timeseries-agg-stats-card.js:49 -msgid "since last month" -msgstr "desde el mes pasado" +#~ msgid "since last month" +#~ msgstr "desde el mes pasado" #: src/components/language-switcher.js:19 msgid "Spanish" @@ -412,16 +478,21 @@ msgid "Supported By" msgstr "Con el apoyo de" #: src/data/footer-items.js:9 -#: src/pages/team.js:21 +#: src/pages/team.js:31 msgid "Team" msgstr "Equipo" +#: src/components/dashboard/timeline-plot-container.js:41 +#~ msgid "This is a timeline of how many open issues and pull requests Xarray has on Github over time from {0} to " +#~ msgstr "Esta es una cronología de cuántos reportes y Pull Requests tiene Xarray en Github a lo largo del tiempo desde {0} hasta" + #. placeholder {0}: new Date(start).toLocaleDateString() +#. placeholder {1}: new Date(end).toLocaleDateString() #: src/components/dashboard/timeline-plot-container.js:41 -msgid "This is a timeline of how many open issues and pull requests Xarray has on Github over time from {0} to " -msgstr "Esta es una cronología de cuántos reportes y Pull Requests tiene Xarray en Github a lo largo del tiempo desde {0} hasta" +msgid "This is a timeline of how many open issues and pull requests Xarray has on Github over time from {0} to {1}." +msgstr "" -#: src/components/scientific-domains.js:17 +#: src/components/scientific-domains.js:16 msgid "This section lists some of the standalone packages, projects developed with xarray." msgstr "En esta sección se enumeran algunos de los paquetes independientes y proyectos desarrollados con xarray." @@ -429,6 +500,10 @@ msgstr "En esta sección se enumeran algunos de los paquetes independientes y pr msgid "Try" msgstr "Pruebe" +#: src/components/repl.js:71 +msgid "Try Xarray" +msgstr "" + #: src/components/repl.js:74 msgid "Try Xarray in a REPL directly in your browser (no installation needed)!" msgstr "¡Pruebe Xarray en un REPL directamente en su navegador (no necesita instalación)!" @@ -445,7 +520,7 @@ msgstr "Operaciones vectorizadas" msgid "Verification of weather and climate forecasts" msgstr "Verificación de predicciones meteorológicas y climáticas." -#: src/pages/team.js:55 +#: src/pages/team.js:65 msgid "We appreciate all contributions from community to make Xarray thrive." msgstr "Apreciamos todas las contribuciones de la comunidad para hacer que Xarray siga creciendo." @@ -481,7 +556,11 @@ msgstr "Agradecemos a estas instituciones por apoyar generosamente el desarrollo msgid "Why Xarray?" msgstr "¿Por qué Xarray?" -#: src/pages/team.js:29 +#: src/pages/team.js:22 +msgid "Xarray Contributors" +msgstr "" + +#: src/pages/team.js:39 msgid "Xarray core maintainers are responsible for the ongoing organizational maintenance and technical direction of the Xarray project. The current core team comprises:" msgstr "Los mantenedores principales de Xarray son responsables del continuo mantenimiento organizacional y la dirección técnica del proyecto. El equipo principal de mantenedores está actualmente compuesto por:" @@ -525,7 +604,7 @@ msgstr "Xarray es un proyecto patrocinado por NumFOCUS, una " msgid "Xarray is an open source project and Python package that introduces labels in the form of dimensions, coordinates, and attributes on top of raw NumPy-like arrays, which allows for more intuitive, more concise, and less error-prone user experience." msgstr "Xarray es un proyecto de código abierto y un paquete de Python que introduce etiquetas en forma de dimensiones, coordenadas y atributos sobre conjuntos de datos similares a NumPy, lo que permite una experiencia de usuario más intuitiva, más concisa y menos propensa a errores." -#: src/pages/team.js:47 +#: src/pages/team.js:57 msgid "Xarray is made with love by more than " msgstr "Xarray está hecho con amor por más de " @@ -541,16 +620,16 @@ msgstr "Listado de reportes" msgid "Xarray Project Metrics" msgstr "Métricas del proyecto" -#: src/pages/dashboard.js:9 -#: src/pages/dashboard.js:11 +#: src/pages/dashboard.js:19 +#: src/pages/dashboard.js:21 msgid "Xarray project statistics" msgstr "Estadísticas del proyecto" -#: src/components/features.js:28 +#: src/components/features.js:27 msgid "Xarray provides data models for working with labeled arrays and datasets. Its toolkit includes a broad set of domain-agnostic functions for advanced analytics and visualization with these data structures." msgstr "Xarray proporciona modelos de datos para trabajar con conjuntos de datos etiquetados. Su conjunto de herramientas incluye un amplio conjunto de funciones independientes del dominio para análisis y visualización con estas estructuras de datos." -#: src/components/array-libraries.js:51 +#: src/components/array-libraries.js:50 msgid "Xarray supports multiple array backends, allowing users to choose array types that work best for their application." msgstr "Xarray admite múltiples motores, lo que permite a los usuarios elegir los tipos de estructuras de datos que funcionan mejor para su aplicación." @@ -558,6 +637,6 @@ msgstr "Xarray admite múltiples motores, lo que permite a los usuarios elegir l #~ msgid "Xarray x NASA: xarray.DataTree for hierarchical data structures" #~ msgstr "Xarray x NASA: xarray.DataTree para estructuras de datos jerárquicas" -#: src/pages/index.js:29 +#: src/pages/index.js:30 msgid "Xarray: N-D labeled arrays and datasets in Python" msgstr "Arreglos y conjuntos de datos n-dimensionales etiquetados en Python" diff --git a/src/locales/pt/messages.po b/src/locales/pt/messages.po index 7a80554dd..83ff6af97 100644 --- a/src/locales/pt/messages.po +++ b/src/locales/pt/messages.po @@ -18,15 +18,37 @@ msgstr "" "X-Crowdin-File: /[Scientific-Python-Translations.xarray-translations] main/src/locales/en/messages.po\n" "X-Crowdin-File-ID: 1180\n" +#. placeholder {0}: d3.format('.1f')(result) +#: src/components/dashboard/timeseries-agg-stats-card.js:57 +msgid "{0} days" +msgstr "" + +#. placeholder {0}: d3.format('.1f')(result * 24) +#: src/components/dashboard/timeseries-agg-stats-card.js:56 +msgid "{0} hours" +msgstr "" + +#. placeholder {0}: d3.format('.2f')(Math.abs(diffPercentage)) +#: src/components/dashboard/timeseries-agg-stats-card.js:48 +msgid "{0}% since last month" +msgstr "" + +#: src/components/footer.js:79 +msgid "© {currentYear}, Xarray core developers. Apache 2.0 Licensed." +msgstr "" + #: src/components/footer.js:79 -msgid "© {currentYear}, Xarray core developers. Apache 2.0Licensed." -msgstr "© {currentYear}, Xarray core developers. Apache 2.0Licensed." +#~ msgid "© {currentYear}, Xarray core developers. Apache 2.0Licensed." +#~ msgstr "© {currentYear}, Xarray core developers. Apache 2.0Licensed." #: src/data/projects.js:9 msgid "🌊 Oceanography" msgstr "🌊 Oceanografia" #: src/data/projects.js:41 +#: src/data/projects.js:73 +#: src/data/projects.js:81 +#: src/data/projects.js:105 msgid "🌎 Geoscience" msgstr "🌎 Geociência" @@ -38,27 +60,51 @@ msgstr "🌪🌡 Meteorologia" msgid "💊 Bioinformatics" msgstr "💊 Bioinformática" +#: src/data/projects.js:89 +msgid "💥 plasma physics" +msgstr "" + +#: src/data/projects.js:65 +msgid "📊 Visualization" +msgstr "" + #: src/data/projects.js:17 #: src/data/projects.js:49 msgid "🗺️ Geographic Processing" msgstr "🗺️ Processamento Geográfico" -#: src/pages/team.js:52 +#: src/data/projects.js:97 +msgid "🧬 genomics" +msgstr "" + +#: src/pages/team.js:62 msgid "370 volunteer contributors" msgstr "" -#: src/components/donate.js:47 -#~ msgid "501(c)(3) nonprofit charity" -#~ msgstr "501(c)(3) nonprofit charity" +#: src/components/donate.js:45 +msgid "501(c)(3) nonprofit charity" +msgstr "501(c)(3) nonprofit charity" + +#: src/data/projects.js:72 +msgid "A community platform for Big Data geoscience" +msgstr "" #: src/data/projects.js:64 msgid "A high-level plotting API for the PyData ecosystem built on HoloViews" msgstr "Uma API de alto nível para o ecossistema PyData construído a partir de HoloViews" +#: src/data/projects.js:80 +msgid "An accessor for Xarray objects that interprets Climate and Forecast (CF) metadata convention attributes" +msgstr "" + #: src/data/array-libraries.js:29 msgid "An implementation of chunked, compressed, N-dimensional arrays for Python." msgstr "Uma implementação de matrizes N-dimensionais fatiadas e compactadas para Python." +#: src/data/projects.js:104 +msgid "Analysis ready CMIP6 data in Python the easy way with pangeo tools." +msgstr "" + #: src/data/features.js:11 msgid "Apply operations over named dimensions" msgstr "Aplicar operações sobre dimensões nomeadas" @@ -100,6 +146,10 @@ msgstr "" msgid "Citing Xarray" msgstr "Citando Xarray" +#: src/data/projects.js:32 +msgid "Collection of tools for reading, visualizing and performing calculations with weather data" +msgstr "" + #: src/data/projects.js:56 msgid "Collection of tools for the analysis and visualization of spatial molecular data" msgstr "Coleção de ferramentas para a análise e visualização de dados moleculares espaciais" @@ -124,7 +174,7 @@ msgstr "" msgid "Core Maintainers" msgstr "" -#: src/pages/team.js:26 +#: src/pages/team.js:36 msgid "Current core maintainers 🤝" msgstr "" @@ -141,8 +191,8 @@ msgid "Database like operations" msgstr "Operações do tipo banco de dados" #: src/components/dashboard/timeseries-agg-stats-card.js:58 -msgid "days" -msgstr "" +#~ msgid "days" +#~ msgstr "" #: src/components/dashboard/project-metrics.js:68 msgid "Dependent Packages/Repos" @@ -231,8 +281,8 @@ msgid "GroupBy operations" msgstr "Operações GroupBy" #: src/components/dashboard/timeseries-agg-stats-card.js:57 -msgid "hours" -msgstr "" +#~ msgid "hours" +#~ msgstr "" #: src/components/donate.js:60 msgid "If you like Xarray and want to support our mission, please consider making a donation to support our efforts." @@ -277,6 +327,10 @@ msgstr "" #~ " and administrative support to help ensure the health and\n" #~ " sustainability of the project. Visit{' '}" +#: src/data/projects.js:88 +msgid "Integrated modeling and experimental data analysis software for magnetically confined thermonuclear fusion experiments" +msgstr "" + #: src/data/features.js:7 msgid "Interoperability" msgstr "Interoperabilidade" @@ -289,7 +343,15 @@ msgstr "Interoperável com o ecossistema científico de Python, incluindo NumPy, msgid "Issue Tracker" msgstr "Rastreador de Problemas" -#: src/components/features.js:25 +#: src/components/dashboard/timeline-plot-container.js:50 +msgid "Issues" +msgstr "" + +#: src/data/features.js:32 +msgid "Keep track of arbitrary metadata in the form of a Python dictionary." +msgstr "" + +#: src/components/features.js:24 msgid "Key Features & Capabilities" msgstr "Principais Recursos & Funcionalidades" @@ -333,7 +395,7 @@ msgstr "Biblioteca de matrizes compatível com NumPy para computação acelerada msgid "Operate and manipulate physical quantities in Python" msgstr "Opere e manipule quantidades físicas em Python" -#: src/pages/team.js:44 +#: src/pages/team.js:54 msgid "Our valuable contributors 💖" msgstr "" @@ -341,7 +403,7 @@ msgstr "" msgid "Portuguese" msgstr "" -#: src/components/dashboard/timeline-plot-container.js:49 +#: src/components/dashboard/timeline-plot-container.js:48 msgid "Pull Requests" msgstr "Pull Requests" @@ -369,11 +431,15 @@ msgstr "Recursos" msgid "Roadmap" msgstr "Planejamento" +#: src/data/projects.js:96 +msgid "Scalable statistical genetic data analysis in Python" +msgstr "" + #: src/components/ecosystem.js:75 msgid "Scientific Domains" msgstr "Domínios científicos" -#: src/components/scientific-domains.js:48 +#: src/components/scientific-domains.js:47 msgid "See More" msgstr "Veja mais" @@ -382,8 +448,8 @@ msgid "Select values by label instead of integer location" msgstr "Selecione os valores por rótulo em vez do índice inteiro" #: src/components/dashboard/timeseries-agg-stats-card.js:49 -msgid "since last month" -msgstr "" +#~ msgid "since last month" +#~ msgstr "" #: src/components/language-switcher.js:19 msgid "Spanish" @@ -414,18 +480,23 @@ msgid "Supported By" msgstr "Apoiado por" #: src/data/footer-items.js:9 -#: src/pages/team.js:21 +#: src/pages/team.js:31 msgid "Team" msgstr "Equipe" +#: src/components/dashboard/timeline-plot-container.js:41 +#~ msgid "This is a timeline of how many open issues and pull requests Xarray has on Github over time from {0} to " +#~ msgstr "" +#~ "Esta é uma linha do tempo de quantas issues abertas e pull requests o Xarray tem\n" +#~ "no GitHub ao longo do tempo de {0} até" + #. placeholder {0}: new Date(start).toLocaleDateString() +#. placeholder {1}: new Date(end).toLocaleDateString() #: src/components/dashboard/timeline-plot-container.js:41 -msgid "This is a timeline of how many open issues and pull requests Xarray has on Github over time from {0} to " +msgid "This is a timeline of how many open issues and pull requests Xarray has on Github over time from {0} to {1}." msgstr "" -"Esta é uma linha do tempo de quantas issues abertas e pull requests o Xarray tem\n" -"no GitHub ao longo do tempo de {0} até" -#: src/components/scientific-domains.js:17 +#: src/components/scientific-domains.js:16 msgid "This section lists some of the standalone packages, projects developed with xarray." msgstr "" "Esta seção lista alguns pacotes autônomos e projetos desenvolvidos\n" @@ -435,6 +506,10 @@ msgstr "" msgid "Try" msgstr "Experimentar" +#: src/components/repl.js:71 +msgid "Try Xarray" +msgstr "" + #: src/components/repl.js:74 msgid "Try Xarray in a REPL directly in your browser (no installation needed)!" msgstr "Experimente o Xarray em uma REPL diretamente no seu browser (não é necessário instalar nada)!" @@ -451,7 +526,7 @@ msgstr "Operações vetorizadas" msgid "Verification of weather and climate forecasts" msgstr "Verificação do tempo e previsão do clima" -#: src/pages/team.js:55 +#: src/pages/team.js:65 msgid "We appreciate all contributions from community to make Xarray thrive." msgstr "" @@ -489,7 +564,11 @@ msgstr "" msgid "Why Xarray?" msgstr "Por que Xarray?" -#: src/pages/team.js:29 +#: src/pages/team.js:22 +msgid "Xarray Contributors" +msgstr "" + +#: src/pages/team.js:39 msgid "Xarray core maintainers are responsible for the ongoing organizational maintenance and technical direction of the Xarray project. The current core team comprises:" msgstr "" @@ -535,7 +614,7 @@ msgstr "" "Xarray é um projeto de código aberto e pacote Python que introduz rótulos na forma de dimensões, coordenadas\n" " e atributos em matrizes do tipo NumPy, que permitem uma experiência do usuário mais intuitiva, mais concisa e menos propensa a erros." -#: src/pages/team.js:47 +#: src/pages/team.js:57 msgid "Xarray is made with love by more than " msgstr "" @@ -553,16 +632,16 @@ msgstr "Rastreador de Problemas Xarray" msgid "Xarray Project Metrics" msgstr "Métricas do Projeto Xarray" -#: src/pages/dashboard.js:9 -#: src/pages/dashboard.js:11 +#: src/pages/dashboard.js:19 +#: src/pages/dashboard.js:21 msgid "Xarray project statistics" msgstr "Métricas do Projeto Xarray" -#: src/components/features.js:28 +#: src/components/features.js:27 msgid "Xarray provides data models for working with labeled arrays and datasets. Its toolkit includes a broad set of domain-agnostic functions for advanced analytics and visualization with these data structures." msgstr "Xarray fornece modelos de dados para trabalhar com matrizes e conjuntos de dados rotulados. Seu kit de ferramentas inclui um amplo conjunto de funções agnósticas de domínio para análise avançada e visualização com estas estruturas de dados." -#: src/components/array-libraries.js:51 +#: src/components/array-libraries.js:50 msgid "Xarray supports multiple array backends, allowing users to choose array types that work best for their application." msgstr "O Xarray suporta vários backends de matrizes, permitindo que os usuários escolham tipos de matrizes que funcionam melhor para sua aplicação." @@ -570,6 +649,6 @@ msgstr "O Xarray suporta vários backends de matrizes, permitindo que os usuári #~ msgid "Xarray x NASA: xarray.DataTree for hierarchical data structures" #~ msgstr "Xarray x NASA: xarray.DataTree para estruturas de dados hierárquicas" -#: src/pages/index.js:29 +#: src/pages/index.js:30 msgid "Xarray: N-D labeled arrays and datasets in Python" msgstr "Xarray: matrizes N-D rotuladas e conjuntos de dados em Python" diff --git a/src/pages/blog/[id].js b/src/pages/blog/[id].js index cb19e0e5a..65a6df8fe 100644 --- a/src/pages/blog/[id].js +++ b/src/pages/blog/[id].js @@ -28,7 +28,6 @@ import { Link, mapping } from '@/components/mdx' import { distanceToNow, formatDate } from '@/lib/date-formatting' import { MDXElements } from '@/lib/mdx-elements' import { getAllPostsIds, getPostData } from '@/lib/posts' -import { loadCatalog } from '../../i18n' import { i18nConfig } from '@/config/i18n.mjs' export default function Post({ source, frontmatter, postId, translation }) { diff --git a/src/pages/cards/[id].js b/src/pages/cards/[id].js index 7c47ee3ca..95356e71f 100644 --- a/src/pages/cards/[id].js +++ b/src/pages/cards/[id].js @@ -16,7 +16,6 @@ import fs from 'fs' import matter from 'gray-matter' import path from 'path' import { MdOutlineCalendarToday, MdPeopleOutline } from 'react-icons/md' -import { loadCatalog } from '../../i18n' const Card = ({ frontmatter, id }) => { const date = new Date(frontmatter.date) diff --git a/src/pages/dashboard.js b/src/pages/dashboard.js index 8bcf72797..84c8ec827 100644 --- a/src/pages/dashboard.js +++ b/src/pages/dashboard.js @@ -1,6 +1,16 @@ import { IssueTracker, ProjectMetrics } from '@/components/dashboard' import { Layout } from '@/components/layout' import { useLingui } from '@lingui/react/macro' +import { loadCatalog } from '../i18n' + +export const getStaticProps = async (ctx) => { + const translation = await loadCatalog(ctx.locale) + return { + props: { + translation, + }, + } +} const DashboardPage = () => { const { t } = useLingui() diff --git a/src/pages/team.js b/src/pages/team.js index d78db7e1c..2fb1a57a2 100644 --- a/src/pages/team.js +++ b/src/pages/team.js @@ -4,12 +4,22 @@ import { TeamMember } from '@/components/team-member' import { TeamMembers } from '@/data/team-members' import { Box, Container, Heading, SimpleGrid, Text } from '@chakra-ui/react' import { useLingui } from '@lingui/react/macro' +import { loadCatalog } from '../i18n' + +export const getStaticProps = async (ctx) => { + const translation = await loadCatalog(ctx.locale) + return { + props: { + translation, + }, + } +} const Team = () => { const { t } = useLingui() return (