# -*- coding: utf-8 -*- # # Copyright (C) 2019 CERN. # Copyright (C) 2019 Northwestern University. # Copyright (C) 2023 Graz University of Technology. # # React-Searchkit is free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. # Translate JavaScript strings # 1) Install i18n dev dependencies # npm install # 2) Add a new language # npm run init_catalog lang # 3) Extract translation keys/values # $ npm run extract_messages # 4) Install the transifex-client # see: https://developers.transifex.com/docs/cli#transifex-client # 5) Push source (.pot) and translations (.po) to Transifex # Navigate to the root of the invenio_administration repository # $ tx push -s -t # 6) Pull translations for a single language from Transifex # $ tx pull -l # 7) Pull translations for all languages from Transifex # $ tx pull -a # 8) Compile .po files for all languages # $ npm run compile_catalog # 9) Convert .po file for a single language # $ npm run compile_catalog lang [main] host = https://app.transifex.com [o:inveniosoftware:p:invenio:r:react-searchkit-messages-ui] file_filter = src/lib/translations/messages//messages.po source_file = src/lib/translations/translations.pot source_lang = en type = PO