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/app/components
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
..
Avatar feat: I18n (#1653) 2020-11-29 20:04:58 -08:00
DocumentHistory flow: Correctly type Theme 2020-11-09 00:01:50 -08:00
DocumentPreview feat: I18n (#1653) 2020-11-29 20:04:58 -08:00
DropdownMenu feat: I18n (#1653) 2020-11-29 20:04:58 -08:00
List chore: Upgrade Babel, Jest, Eslint (#1437) 2020-08-08 22:53:59 -07:00
LoadingIndicator fix: Mobile style fixes and improvements (#1459) 2020-08-17 00:08:22 -07:00
LoadingPlaceholder fix: Improved loading jank fix, new DelayedMount component 2020-08-10 21:30:12 -07:00
Sidebar feat: I18n (#1653) 2020-11-29 20:04:58 -08:00
Toasts fix: Mobile style fixes and improvements (#1459) 2020-08-17 00:08:22 -07:00
Actions.js chore: Upgrade Prettier 1.8 -> 2.0 (#1436) 2020-08-08 18:53:11 -07:00
Analytics.js chore: Upgrade Prettier 1.8 -> 2.0 (#1436) 2020-08-08 18:53:11 -07:00
Authenticated.js feat: I18n (#1653) 2020-11-29 20:04:58 -08:00
Badge.js fix: Styling of 'New' badge in dark mode 2020-09-21 19:35:51 -07:00
Branding.js chore: Upgrade Prettier 1.8 -> 2.0 (#1436) 2020-08-08 18:53:11 -07:00
Breadcrumb.js feat: I18n (#1653) 2020-11-29 20:04:58 -08:00
BreadcrumbMenu.js chore: Menu templates (#1644) 2020-11-14 20:44:31 -08:00
Button.js fix: Focus accessibility (#1536) 2020-09-12 23:27:23 -07:00
ButtonLarge.js New login screen (#1331) 2020-07-09 22:33:07 -07:00
CenteredContent.js fix: Mobile style fixes and improvements (#1459) 2020-08-17 00:08:22 -07:00
Checkbox.js chore: Update syntax, improve more typing (#1439) 2020-08-09 09:48:04 -07:00
ClickablePadding.js chore: Move to prettier standard double quotes (#1309) 2020-06-20 13:59:15 -07:00
Collaborators.js fix: Prevent API request for views data for deleted documents (#1663) 2020-11-18 19:09:08 -08:00
CollectionIcon.js fix: Documents in deleted collection should appear in trash (#1362) 2020-09-07 11:51:09 -07:00
CopyToClipboard.js chore: Upgrade Babel, Jest, Eslint (#1437) 2020-08-08 22:53:59 -07:00
DelayedMount.js refactor: Remove old react lifecycle methods (#1480) 2020-08-23 11:51:56 -07:00
DocumentList.js chore: Upgrade Babel, Jest, Eslint (#1437) 2020-08-08 22:53:59 -07:00
DocumentMeta.js feat: I18n (#1653) 2020-11-29 20:04:58 -08:00
DocumentMetaWithViews.js feat: Show unique views rather than total views in document meta. (#1559) 2020-10-19 22:44:28 -07:00
DropToImport.js feat: Add support for "word" files exported from Confluence (#1600) 2020-10-21 08:53:59 -07:00
Editor.js feat: I18n (#1653) 2020-11-29 20:04:58 -08:00
Empty.js chore: Upgrade Prettier 1.8 -> 2.0 (#1436) 2020-08-08 18:53:11 -07:00
ErrorBoundary.js feat: Add custom error state for chunk loading failed 2020-08-31 21:09:23 -07:00
EventBoundary.js fix: Clicking the share link from a context menu propagates the click onto the container (#1643) 2020-11-11 09:02:02 -08:00
Facepile.js chore: Upgrade Babel, Jest, Eslint (#1437) 2020-08-08 22:53:59 -07:00
Fade.js chore: Upgrade Prettier 1.8 -> 2.0 (#1436) 2020-08-08 18:53:11 -07:00
Flex.js New login screen (#1331) 2020-07-09 22:33:07 -07:00
FullscreenLoading.js perf: Reduce initial bundle size / async bundle loading (#1456) 2020-08-14 17:23:58 -07:00
GithubLogo.js New login screen (#1331) 2020-07-09 22:33:07 -07:00
GoogleLogo.js New login screen (#1331) 2020-07-09 22:33:07 -07:00
GroupListItem.js chore: Update syntax, improve more typing (#1439) 2020-08-09 09:48:04 -07:00
Heading.js fix: Login to X should be centered when team name wraps to newline 2020-08-12 14:05:32 -07:00
HelpText.js chore: Upgrade Prettier 1.8 -> 2.0 (#1436) 2020-08-08 18:53:11 -07:00
Highlight.js fix: Various React warnings 2020-11-08 20:28:27 -08:00
HoverPreview.js fix: Dead pointer zone over links when hover card is showing 2020-09-13 19:49:25 -07:00
HoverPreviewDocument.js feat: I18n (#1653) 2020-11-29 20:04:58 -08:00
IconPicker.js feat: I18n (#1653) 2020-11-29 20:04:58 -08:00
Input.js fix: Remove non-standardized css (console warning) 2020-11-08 20:01:47 -08:00
InputLarge.js New login screen (#1331) 2020-07-09 22:33:07 -07:00
InputRich.js perf: Reduce initial bundle size / async bundle loading (#1456) 2020-08-14 17:23:58 -07:00
InputSearch.js feat: I18n (#1653) 2020-11-29 20:04:58 -08:00
InputSelect.js feat: I18n (#1653) 2020-11-29 20:04:58 -08:00
Key.js chore: Upgrade Prettier 1.8 -> 2.0 (#1436) 2020-08-08 18:53:11 -07:00
Labeled.js chore: Upgrade Babel, Jest, Eslint (#1437) 2020-08-08 22:53:59 -07:00
LanguagePrompt.js feat: I18n (#1653) 2020-11-29 20:04:58 -08:00
Layout.js feat: I18n (#1653) 2020-11-29 20:04:58 -08:00
Mask.js refactor: Remove old react lifecycle methods (#1480) 2020-08-23 11:51:56 -07:00
Modal.js fix: Missing click action to change permissions on a collection 2020-08-25 21:00:50 -07:00
Notice.js chore: Upgrade Prettier 1.8 -> 2.0 (#1436) 2020-08-08 18:53:11 -07:00
NoticeAlert.js New login screen (#1331) 2020-07-09 22:33:07 -07:00
NoticeTip.js feat: I18n (#1653) 2020-11-29 20:04:58 -08:00
NudeButton.js fix: Focus accessibility (#1536) 2020-09-12 23:27:23 -07:00
OutlineLogo.js New login screen (#1331) 2020-07-09 22:33:07 -07:00
PageTitle.js chore: Upgrade Babel, Jest, Eslint (#1437) 2020-08-08 22:53:59 -07:00
PaginatedDocumentList.js chore: Upgrade Babel, Jest, Eslint (#1437) 2020-08-08 22:53:59 -07:00
PaginatedList.js feat: add filters to drafts (#1631) 2020-11-08 22:33:52 -08:00
PathToDocument.js fix: Virtualize move document listbox (#1650) 2020-11-12 22:02:56 -08:00
Popover.js fix: Mobile style fixes and improvements (#1459) 2020-08-17 00:08:22 -07:00
ScrollToTop.js fix: common misspelling errors 2020-07-18 09:33:27 -07:00
Scrollable.js chore: Upgrade Babel, Jest, Eslint (#1437) 2020-08-08 22:53:59 -07:00
SlackLogo.js New login screen (#1331) 2020-07-09 22:33:07 -07:00
SocketProvider.js fix: Improved handling of delete events from collection and document sockets (#1517) 2020-09-07 19:05:10 -07:00
Subheading.js feat: add filters to drafts (#1631) 2020-11-08 22:33:52 -08:00
Switch.js chore: Upgrade Prettier 1.8 -> 2.0 (#1436) 2020-08-08 18:53:11 -07:00
Tab.js flow: Correctly type Theme 2020-11-09 00:01:50 -08:00
Tabs.js fix: Mobile style fixes and improvements (#1459) 2020-08-17 00:08:22 -07:00
TeamLogo.js fix: Allow selection of embeds (#1562) 2020-09-20 22:27:11 -07:00
Theme.js chore: Update syntax, improve more typing (#1439) 2020-08-09 09:48:04 -07:00
Time.js fix: Styling of 'New' badge in dark mode 2020-09-21 19:35:51 -07:00
Tooltip.js chore: Update syntax, improve more typing (#1439) 2020-08-09 09:48:04 -07:00
VisuallyHidden.js chore: Move to prettier standard double quotes (#1309) 2020-06-20 13:59:15 -07:00