# Aurelia 2 Plugin Sample or Docs

**URL:** <https://discourse.aurelia.io/t/aurelia-2-plugin-sample-or-docs/3770>\
**Category:** vNext\
**Created:** [September 11, 2020, 11:18am UTC](https://discourse.aurelia.io/t/aurelia-2-plugin-sample-or-docs/3770 "2020-09-11T11:18:19Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Sayan751](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/sayan751/32/1861_2.png) [@Sayan751](https://discourse.aurelia.io/u/Sayan751)\
**Post date:** [September 11, 2020, 2:04pm UTC](https://discourse.aurelia.io/t/aurelia-2-plugin-sample-or-docs/3770/4 "2020-09-11T14:04:06Z")

</div>

Hi @gregoryagu. As you already know from Au1, there is not much special about the plugin, except the plugin’s configuration function, which is used during bootstrap, to setup global resources, and configuration options.

The same goes also for Au2. As an example, take a look at the i18n plugin in Au2:

> <https://github.com/aurelia/aurelia/blob/d425f66219501b5ad908bbbe55be061ad3b3284c/packages/i18n/src/configuration.ts#L99-L119>

The most interesting thing here is the `register` method. During "bootstrap"ing phase, an instance of `IContainer` is passed on to this. You can use that to register “global resources”, such as custom elements/attributes, value converters, binding behavior etc.

And then where this plugin is used, you do something like this:

```auto
container.register(I18nConfiguration);

```

If you allow customization from the client code, you can also do so. Clients may choose to setup the configuration by themselves completely ignoring your OOTB configurations. Or you may choose ease up the situation by exposing APIs to customize. In the example above, this is done in the `customize` method.

If you are not already familiar with the Au2 API, you may take a look here on how to migrate your CEs: [https://docs.aurelia.io/getting-started/components#working-without-conventions](https://docs.aurelia.io/getting-started/components#working-without-conventions).

And that’s all! Have fun with Au2 🙂

---

_[View the full topic](https://discourse.aurelia.io/t/aurelia-2-plugin-sample-or-docs/3770)._
