-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add `typedoc.json` instead of command-line flags, as the interface changed * Add plugin to document not exported objects (needed for the gettext module) * Add some module description for index and gettext Signed-off-by: Ferdinand Thiessen <rpm@fthiessen.de>
- Loading branch information
Showing
6 changed files
with
74 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,17 @@ | ||
/** | ||
* This module provides all functions for the `OC.L10N` namespace | ||
* | ||
* @packageDocumentation | ||
* @module @nextcloud/l10n | ||
* @example | ||
* ```js | ||
import { translate as t, translatePlural as n } from '@nextcloud/l10n' | ||
console.log(t('my-app', 'Hello {name}', { name: 'J. Doe' })); | ||
const count = 2; | ||
console.warn(n('my-app', 'Got an error', 'Got multiple errors', 2)); | ||
``` | ||
*/ | ||
|
||
export * from './translation' | ||
export * from './date' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"$schema": "https://typedoc.org/schema.json", | ||
"entryPoints": ["./lib/index.ts", "./lib/gettext.ts"], | ||
"out": "dist/doc", | ||
"excludePrivate": true, | ||
"navigationLinks": { | ||
"GitHub": "https://github.com/nextcloud/nextcloud-l10n/", | ||
"Nextcloud": "https://docs.nextcloud.com/server/stable/developer_manual/basics/front-end/l10n.html" | ||
} | ||
} |