This repository has been archived on 2022-08-14. You can view files and clone it, but cannot push or open issues or pull requests.
outline/server
Tom Moor 1285efc49a
feat: I18n (#1653)
* feat: i18n

* Changing language single source of truth from TEAM to USER

* Changes according to @tommoor comments on PR

* Changed package.json for build:i18n and translation label

* Finished 1st MVP of i18n for outline

* new translation labels & Portuguese from Portugal translation

* Fixes from PR request

* Described language dropdown as an experimental feature

* Set keySeparator to false in order to cowork with html keys

* Added useTranslation to Breadcrumb

* Repositioned <strong> element

* Removed extra space from TemplatesMenu

* Fortified the test suite for i18n

* Fixed trans component problematic

* Check if selected language is available

* Update yarn.lock

* Removed unused Trans

* Removing debug variable from i18n init

* Removed debug variable

* test: update snapshots

* flow: Remove decorator usage to get proper flow typing
It's a shame, but hopefully we'll move to Typescript in the next 6 months and we can forget this whole Flow mistake ever happened

* translate: Drafts

* More translatable strings

* Mo translation strings

* translation: Search

* async translations loading

* cache translations in client

* Revert "cache translations in client"

This reverts commit 08fb61ce36384ff90a704faffe4761eccfb76da1.

* Revert localStorage cache for cache headers

* Update Crowdin configuration file

* Moved translation files to locales folder and fixed english text

* Added CONTRIBUTING File for CrowdIn

* chore: Move translations again to please CrowdIn

* fix: loading paths
chore: Add strings for editor

* fix: Improve validation on documents.import endpoint

* test: mock bull

* fix: Unknown mimetype should fallback to Markdown parsing if markdown extension (#1678)

* closes #1675

* Update CONTRIBUTING

* chore: Add link to translation portal from app UI

* refactor: Centralize language config

* fix: Ensure creation of i18n directory in build

* feat: Add language prompt

* chore: Improve contributing guidelines, add link from README

* chore: Normalize tab header casing

* chore: More string externalization

* fix: Language prompt in dark mode

Co-authored-by: André Glatzl <andreglatzl@gmail.com>
2020-11-29 20:04:58 -08:00
..
__mocks__ Websocket Support (#937) 2019-04-17 19:11:23 -07:00
__snapshots__ chore: Remove Spectrum references (#1366) 2020-07-18 17:19:13 -07:00
api feat: I18n (#1653) 2020-11-29 20:04:58 -08:00
auth chore: Add additional missing events (#1639) 2020-11-14 20:44:18 -08:00
commands fix: Unknown mimetype should fallback to Markdown parsing if markdown extension (#1678) 2020-11-26 21:16:56 -08:00
config fix: Unable to run migrations in latest image. Added option to run non-SSL migration in production 2020-09-27 10:32:08 -07:00
emails chore: Upgrade Babel, Jest, Eslint (#1437) 2020-08-08 22:53:59 -07:00
middlewares chore: Add additional missing events (#1639) 2020-11-14 20:44:18 -08:00
migrations feat: I18n (#1653) 2020-11-29 20:04:58 -08:00
models feat: I18n (#1653) 2020-11-29 20:04:58 -08:00
onboarding chore: Remove emojis from welcome docs 2020-07-20 19:14:15 -07:00
policies fix: Update document policy to disable sharing for read-only users (#1638) 2020-11-10 20:35:41 -08:00
presenters feat: I18n (#1653) 2020-11-29 20:04:58 -08:00
services fix: Document published notification potentially sent to users without permission to view document 2020-11-05 19:49:05 -08:00
static fix: Ignore safely ignored loop error 2020-11-11 17:05:05 -08:00
test feat: Add support for "word" files exported from Confluence (#1600) 2020-10-21 08:53:59 -07:00
utils chore: Refactor authentication pass between subdomains (#1619) 2020-11-04 19:54:04 -08:00
.babelrc chore: Specify babelrc for server specifically (#1585) 2020-09-30 20:02:33 -07:00
.jestconfig.json feat: Upgrade editor (#1227) 2020-05-19 20:39:34 -07:00
app.js lint 2020-10-19 07:48:51 -07:00
env.js chore: Remove WEBSOCKETS_ENABLED flag (#1383) 2020-07-22 22:44:24 -07:00
errors.js feat: Add support for "word" files exported from Confluence (#1600) 2020-10-21 08:53:59 -07:00
events.js chore: Add additional missing events (#1639) 2020-11-14 20:44:18 -08:00
index.js refactor: Remove babel/register for instant production server startup (#1481) 2020-09-13 10:46:33 -07:00
logistics.js chore: Upgrade Babel, Jest, Eslint (#1437) 2020-08-08 22:53:59 -07:00
mailer.js chore: Upgrade Babel, Jest, Eslint (#1437) 2020-08-08 22:53:59 -07:00
mailer.test.js chore: Upgrade Prettier 1.8 -> 2.0 (#1436) 2020-08-08 18:53:11 -07:00
main.js fix: Improve error handling when redis connection is lost 2020-10-20 07:41:17 -07:00
redis.js fix: Improve error handling when redis connection is lost 2020-10-20 07:41:17 -07:00
routes.js feat: I18n (#1653) 2020-11-29 20:04:58 -08:00
sequelize.js fix: Allow disabling SSL for Postgres connection with standard PGSSLMODE env 2020-09-04 12:51:48 -07:00
slack.js chore: Upgrade Babel, Jest, Eslint (#1437) 2020-08-08 22:53:59 -07:00
types.js feat: Add ctx.state.authType for tracking (#1567) 2020-09-21 22:02:37 -07:00